Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id 99B8D2004CA for ; Wed, 11 May 2016 10:28:24 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id 97EA21602BF; Wed, 11 May 2016 08:28:24 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id DE9F91602BE for ; Wed, 11 May 2016 10:28:23 +0200 (CEST) Received: (qmail 11852 invoked by uid 500); 11 May 2016 08:28:23 -0000 Mailing-List: contact dev-help@apex.incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@apex.incubator.apache.org Delivered-To: mailing list dev@apex.incubator.apache.org Received: (qmail 11840 invoked by uid 99); 11 May 2016 08:28:22 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd3-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 11 May 2016 08:28:22 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd3-us-west.apache.org (ASF Mail Server at spamd3-us-west.apache.org) with ESMTP id 60F691804D6 for ; Wed, 11 May 2016 08:28:22 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd3-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 1.279 X-Spam-Level: * X-Spam-Status: No, score=1.279 tagged_above=-999 required=6.31 tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, HTML_MESSAGE=2, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H3=-0.01, RCVD_IN_MSPIKE_WL=-0.01, SPF_PASS=-0.001] autolearn=disabled Authentication-Results: spamd3-us-west.apache.org (amavisd-new); dkim=pass (2048-bit key) header.d=datatorrent-com.20150623.gappssmtp.com Received: from mx2-lw-eu.apache.org ([10.40.0.8]) by localhost (spamd3-us-west.apache.org [10.40.0.10]) (amavisd-new, port 10024) with ESMTP id ffzYtykgQVyE for ; Wed, 11 May 2016 08:28:20 +0000 (UTC) Received: from mail-lf0-f48.google.com (mail-lf0-f48.google.com [209.85.215.48]) by mx2-lw-eu.apache.org (ASF Mail Server at mx2-lw-eu.apache.org) with ESMTPS id 611D45F2F2 for ; Wed, 11 May 2016 08:28:19 +0000 (UTC) Received: by mail-lf0-f48.google.com with SMTP id j8so41161539lfd.2 for ; Wed, 11 May 2016 01:28:19 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=datatorrent-com.20150623.gappssmtp.com; s=20150623; h=mime-version:in-reply-to:references:from:date:message-id:subject:to; bh=MH0EfcxMUptipzkBOfcpIswt7auCHNuBeVE+zMktV1k=; b=RiGDUyAtQlZt/4Dbq2hgv9GEm5JFJ5V6tfhoU1tB0IFPptgGweD2HcBxNp9DCc97rX XrxZq9p3k7J+nptyXyLqCRYVNrI0XxKoQkMJefCl0m2ZGTw6M28a1qFiee2LfksI/5M/ itl3GPha/NrQBcW8FwPNDaohZcXRxiaU/9sq54/4tM5XjhwUyTn0bdnoWyezIo9zqhZS p+weX2busa0k38rUlMap1iXmZnIjcwTwSgucG1YBTq/At2n4IKasefpMEokynvzkNauq 1EgEFdyy3SE4DYe/w5/eaJrCSb1f/FyQGQB1/VHdgS6QPT+FdK8sO2e3ybfMtzt1GcgR a1Xg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to; bh=MH0EfcxMUptipzkBOfcpIswt7auCHNuBeVE+zMktV1k=; b=B4VtrBTZ0eTJRDKhzaGSGOPNMaH7dGMlvjxA4Z4pt88hwTbsYI/TYLkkpnURnf9I05 LccGO9K9r9n13rD41Ope/JChLUCv+wPLFb6SIwH7OefxMxCTg9w1cHoXKOssht+AZhnu e3ICu9o/fIED7icL+xh+nSzx9pG2VgtX//qtIqhEKyK6xiXvHMc1oM9zt5b7ttJchj4q 1HNo+7dQ0V/oBp8ZT3PqgqLkG5N8V2KI7Ic9o+ogRTuHJEQ1SfGRcq0wJLyPQt9RHoKH i4JTuOtXUzS1WJdjG3atzdSviF6NES5eP/Um1eGzLvxm7Kkt/Q6TFf3CF5oCUPcO0Pr1 gGUA== X-Gm-Message-State: AOPr4FX2xyg0xXIoWZqqwLKyV+ErFx04TOi1GC5hOp1I04ChEC2T+VgAWR2cKwFRjRhwMTZNlWRdRWsEyYdtLsUT X-Received: by 10.25.208.76 with SMTP id h73mr931705lfg.74.1462955298361; Wed, 11 May 2016 01:28:18 -0700 (PDT) MIME-Version: 1.0 Received: by 10.112.185.35 with HTTP; Wed, 11 May 2016 01:27:58 -0700 (PDT) In-Reply-To: References: From: Sandeep Deshmukh Date: Wed, 11 May 2016 13:57:58 +0530 Message-ID: Subject: Re: APEXMALHAR-2084 - Getters and setters for Kafka are not consistent for topics and clusters To: dev Content-Type: multipart/alternative; boundary=001a114128e0e1b40c05328cd2ef archived-at: Wed, 11 May 2016 08:28:24 -0000 --001a114128e0e1b40c05328cd2ef Content-Type: text/plain; charset=UTF-8 +1. Agree with you Bhupesh. We need to have consistent behaviour across all the operators. As Kafka 0.9 project is still evolving, I don't see any backward compatibility issues. Regards, Sandeep On Wed, May 11, 2016 at 1:11 PM, Bhupesh Chawda wrote: > Hi Thomas, > > In my application, I am trying to configure this operator using a user > interface. The getters and setters for *topics* (for example) are as > follows: > > String[] topics; > > public String getTopics() > public void setTopics(String topics) > > This is not considered consistent behaviour by the UI tool and hence it > either deems the operator invalid or does not allow setting this property > for the operator. Such could be the case with other UI tools as well. > > Additionally it makes sense to have getters and setters for a property, > accept the same data-type as the property and not make them arbitrarily > complex. > > Thanks > ~Bhupesh > > > On Wed, May 11, 2016 at 12:16 AM, Thomas Weise > wrote: > > > What are the issues that you have observed? > > > > > > On Wed, May 11, 2016 at 12:08 AM, Bhupesh Chawda < > bhupesh@datatorrent.com> > > wrote: > > > > > Hi All, > > > > > > The fields in Kafka Input Operator in Malhar kafka project are of type > > > String array. However the getters and setters are not consistent and > > have a > > > return type and parameters of String type respectively. > > > This may cause issues in down stream systems and hence must be fixed. I > > > have created a JIRA to track this - > > > https://issues.apache.org/jira/browse/APEXMALHAR-2084 > > > > > > I am proposing that the types of these fields be made List > > instead > > > of String[ ]. Additionally also make the getters and setters accept > > > parameters and return data of the same type. > > > > > > Please let me know your thoughts on the same. > > > > > > Thanks > > > ~Bhupesh > > > > > > --001a114128e0e1b40c05328cd2ef--