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 41BCC200ACA for ; Fri, 20 May 2016 06:53:34 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id 3F59C160A22; Fri, 20 May 2016 04:53:34 +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 88204160A00 for ; Fri, 20 May 2016 06:53:33 +0200 (CEST) Received: (qmail 80071 invoked by uid 500); 20 May 2016 04:53:32 -0000 Mailing-List: contact dev-help@cloudstack.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@cloudstack.apache.org Delivered-To: mailing list dev@cloudstack.apache.org Received: (qmail 80060 invoked by uid 99); 20 May 2016 04:53:32 -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; Fri, 20 May 2016 04:53:32 +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 9464A1800ED for ; Fri, 20 May 2016 04:53:31 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd3-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: -5.022 X-Spam-Level: X-Spam-Status: No, score=-5.022 tagged_above=-999 required=6.31 tests=[RCVD_IN_DNSWL_HI=-5, RCVD_IN_MSPIKE_H3=-0.01, RCVD_IN_MSPIKE_WL=-0.01, RP_MATCHES_RCVD=-0.001, SPF_PASS=-0.001] autolearn=disabled 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 CI42zr5l6Rfq for ; Fri, 20 May 2016 04:53:29 +0000 (UTC) Received: from mx142.netapp.com (mx142.netapp.com [216.240.21.19]) by mx2-lw-eu.apache.org (ASF Mail Server at mx2-lw-eu.apache.org) with ESMTPS id E79F35F306 for ; Fri, 20 May 2016 04:53:28 +0000 (UTC) X-IronPort-AV: E=Sophos;i="5.26,337,1459839600"; d="scan'208";a="112070847" Received: from hioexcmbx01-prd.hq.netapp.com ([10.122.105.34]) by mx142-out.netapp.com with ESMTP; 19 May 2016 21:53:27 -0700 Received: from HIOEXCMBX05-PRD.hq.netapp.com (10.122.105.38) by hioexcmbx01-prd.hq.netapp.com (10.122.105.34) with Microsoft SMTP Server (TLS) id 15.0.1156.6; Thu, 19 May 2016 21:53:24 -0700 Received: from HIOEXCMBX05-PRD.hq.netapp.com ([::1]) by hioexcmbx05-prd.hq.netapp.com ([fe80::8caf:3f5a:f8ed:cbd3%21]) with mapi id 15.00.1156.000; Thu, 19 May 2016 21:53:24 -0700 From: "Tutkowski, Mike" To: "dev@cloudstack.apache.org" Subject: Re: Variable renaming in classes meant for Agents Thread-Topic: Variable renaming in classes meant for Agents Thread-Index: AQHRslK9TQEm0oVPdUGKNw0ZSuI2oJ/BQVAr Date: Fri, 20 May 2016 04:53:23 +0000 Message-ID: <1463720005877.40747@netapp.com> References: <3497C24D-C446-4068-A156-D1920DA05848@persistent.co.in> In-Reply-To: <3497C24D-C446-4068-A156-D1920DA05848@persistent.co.in> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-ms-exchange-transport-fromentityheader: Hosted x-originating-ip: [10.120.60.36] Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 archived-at: Fri, 20 May 2016 04:53:34 -0000 Thanks for sending out this e-mail, Anshul.=0A= =0A= This is a bit of a strange situation because we need to make sure people ar= e either aware of the fact that properties in Command classes are serialize= d (and not change existing variable names) or come up with a less fragile w= ay of choosing property names when sending data (perhaps using annotations)= .=0A= =0A= At the very least, we should have comments in these classes indicating the = dangers of changing property names. It might also be beneficial to have uni= t tests in place that expect certain variable names and assert if they are = not as expected.=0A= =0A= In the meanwhile, I plan to change the variable names back that were change= d in PR #816.=0A= =0A= Additional thoughts on how this should be addressed long term?=0A= =0A= Thanks!=0A= Mike=0A= ________________________________________=0A= From: Anshul Gangwar =0A= Sent: Thursday, May 19, 2016 10:47 PM=0A= To: dev@cloudstack.apache.org=0A= Subject: Variable renaming in classes meant for Agents=0A= =0A= Hi,=0A= =0A= We should not allow renaming of variables in classes which ends with Comman= d and TO. As these objects are meant to be consumed by Agents.=0A= =0A= Agents may not be written in java so relying on these variable names to get= the info. One such example is Hyper-V agent.=0A= =0A= Hyper-V support is currently broken as there are some variables renamed in = PR https://github.com/apache/cloudstack/pull/816.=0A= =0A= Regards,=0A= Anshul=0A= =0A= =0A= =0A= =0A= =0A= =0A= DISCLAIMER=0A= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=0A= This e-mail may contain privileged and confidential information which is th= e property of Accelerite, a Persistent Systems business. It is intended onl= y for the use of the individual or entity to which it is addressed. If you = are not the intended recipient, you are not authorized to read, retain, cop= y, print, distribute or use this message. If you have received this communi= cation in error, please notify the sender and delete all copies of this mes= sage. Accelerite, a Persistent Systems business does not accept any liabili= ty for virus infected mails.=0A=