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 909E4200C67 for ; Mon, 15 May 2017 19:07:04 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id 8F216160BC2; Mon, 15 May 2017 17:07:04 +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 D4E63160BA9 for ; Mon, 15 May 2017 19:07:03 +0200 (CEST) Received: (qmail 44792 invoked by uid 500); 15 May 2017 17:07:03 -0000 Mailing-List: contact dev-help@apex.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@apex.apache.org Delivered-To: mailing list dev@apex.apache.org Received: (qmail 44776 invoked by uid 99); 15 May 2017 17:07:02 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd1-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 15 May 2017 17:07:02 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd1-us-west.apache.org (ASF Mail Server at spamd1-us-west.apache.org) with ESMTP id 46560CF990 for ; Mon, 15 May 2017 17:07:02 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd1-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 2.48 X-Spam-Level: ** X-Spam-Status: No, score=2.48 tagged_above=-999 required=6.31 tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, HTML_MESSAGE=2, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H3=-0.01, RCVD_IN_MSPIKE_WL=-0.01, RCVD_IN_SORBS_SPAM=0.5] autolearn=disabled Authentication-Results: spamd1-us-west.apache.org (amavisd-new); dkim=pass (2048-bit key) header.d=datatorrent-com.20150623.gappssmtp.com Received: from mx1-lw-us.apache.org ([10.40.0.8]) by localhost (spamd1-us-west.apache.org [10.40.0.7]) (amavisd-new, port 10024) with ESMTP id tFjvplD8q9-E for ; Mon, 15 May 2017 17:06:58 +0000 (UTC) Received: from mail-oi0-f42.google.com (mail-oi0-f42.google.com [209.85.218.42]) by mx1-lw-us.apache.org (ASF Mail Server at mx1-lw-us.apache.org) with ESMTPS id DABEE5F36B for ; Mon, 15 May 2017 17:06:57 +0000 (UTC) Received: by mail-oi0-f42.google.com with SMTP id w10so138650437oif.0 for ; Mon, 15 May 2017 10:06:57 -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=HaYT1jBA7d9NekQIV2FMuJwhE23rcdkdreb3TB8oC4I=; b=UcQZRIwDrkhd2YrObZiWNymigGNduGW2Y7xZ4X3qklCpSNq+DNmqSzR2NhImF3qgIx 7FluR5QR6NIzoI2h4jhMgHSbCbgkdGzduVeB7x1CJS8wpj1lKLM1z7BNipEEDlsTIxAM TdvPI3ZnTJU1popV6tNkpdZXL7452pp1qmq6b+jo+6Rg6XSYWF5LNP+6QxAoXJPdp05N W4XrFbzKv0J+M+09+oz7UVvPKyPi9THFKg5Pj3U7GpZY/nDlMdgk/Q1a+sVvrA0ewr4U e7rGoGycb922BYi7NUfVR5eERlGfYnP0neQuo0BZrPBLSsF8+Qi3YIQDrneW/H0gcgcJ Gqgw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to; bh=HaYT1jBA7d9NekQIV2FMuJwhE23rcdkdreb3TB8oC4I=; b=lcgf0DzDewX6/4RCYPEvpveL13rAst8Ll1VQGplft/TVyOQBJegWN0iIWdSS6P/WRr Dl2hy3J+6Td4Fc/84G3oI+dIvGwPdw7h6sLKsSxs73xPGvRDUQzFrZb7N65j1WZYRtme KhnvD3/3rT77DLDQpxOxNudP4itSz5NcOgSFKPlKtXLQEsZlJtQvx2YVuZ3TMz5BF/f8 HJHSDzhLYWSzJpeE5Kx3MHJVrNostqHGn916GRZ7EwgyYyRqv3yKbkePf5PFsH/nN5jc h+LZx/ofOUci33HjBpCDXMJqWJESxdL0YeymxeCaL0KW8vBuuTpUArIVlg/TOjZdxwto TCIA== X-Gm-Message-State: AODbwcBFE8UZLVR8b7z5KhEcl0kQHlmrw/DLvC39j2n/TQRacOcrbi5G 9vG1JKRl0vjve4H7szfjbFNsyt73nWbO X-Received: by 10.202.55.8 with SMTP id e8mr1939251oia.29.1494868011065; Mon, 15 May 2017 10:06:51 -0700 (PDT) MIME-Version: 1.0 Received: by 10.157.0.42 with HTTP; Mon, 15 May 2017 10:06:50 -0700 (PDT) In-Reply-To: References: From: Sanjay Pujare Date: Mon, 15 May 2017 10:06:50 -0700 Message-ID: Subject: Re: Backward compatibility issue in 3.6.0 release To: dev@apex.apache.org Content-Type: multipart/alternative; boundary="001a113cea64c938d3054f9314b6" archived-at: Mon, 15 May 2017 17:07:04 -0000 --001a113cea64c938d3054f9314b6 Content-Type: text/plain; charset="UTF-8" I vote for renaming to less common names like __count. The renaming breaks compatibility from 3.6.0 to 3.7.0 but seems to be the best option. On Mon, May 15, 2017 at 9:53 AM, Vlad Rozov wrote: > Hi All, > > There is a possible change in operators behavior caused by changes that > were introduced in the release 3.6.0 into DefaultInputPort and > DefaultOutputPort. Please see https://issues.apache.org/jira > /browse/APEXCORE-722. We need to agree how to proceed. > > 1. Break semantic versioning for the Default Input and Output Ports in the > next release (3.7.0), declare protected variables as private and provide > protected access method. Another option is to rename protected variables to > use less common names (for example __count). > 2. Keep protected variables with the risk that the following common > operator design pattern will be used accidentally by existing operators and > newly designed operators: > > public Operator extends BaseOperator { > private int count; > public DefaultInputPort in = new DefaultInputPort() { > @Override > public void process(Object tuple) > { > count++; // updates DefaultInputPort count, not Operator count! > } > } > } > > > Thank you, > > Vlad > --001a113cea64c938d3054f9314b6--