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 479BA200CBE for ; Fri, 7 Jul 2017 15:09:32 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id 45FE8169072; Fri, 7 Jul 2017 13:09:32 +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 648F216906C for ; Fri, 7 Jul 2017 15:09:31 +0200 (CEST) Received: (qmail 83326 invoked by uid 500); 7 Jul 2017 13:09:30 -0000 Mailing-List: contact dev-help@brooklyn.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@brooklyn.apache.org Delivered-To: mailing list dev@brooklyn.apache.org Received: (qmail 83309 invoked by uid 99); 7 Jul 2017 13:09:30 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd2-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 07 Jul 2017 13:09:30 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd2-us-west.apache.org (ASF Mail Server at spamd2-us-west.apache.org) with ESMTP id C6FA01A7AAD for ; Fri, 7 Jul 2017 13:09:29 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd2-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: -0.3 X-Spam-Level: X-Spam-Status: No, score=-0.3 tagged_above=-999 required=6.31 tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, HEADER_FROM_DIFFERENT_DOMAINS=0.001, HTML_MESSAGE=2, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H2=-2.8, RCVD_IN_SORBS_SPAM=0.5, SPF_PASS=-0.001] autolearn=disabled Authentication-Results: spamd2-us-west.apache.org (amavisd-new); dkim=pass (2048-bit key) header.d=cloudsoft-io.20150623.gappssmtp.com Received: from mx1-lw-eu.apache.org ([10.40.0.8]) by localhost (spamd2-us-west.apache.org [10.40.0.9]) (amavisd-new, port 10024) with ESMTP id K5R303jn8U2D for ; Fri, 7 Jul 2017 13:09:27 +0000 (UTC) Received: from mail-wr0-f172.google.com (mail-wr0-f172.google.com [209.85.128.172]) by mx1-lw-eu.apache.org (ASF Mail Server at mx1-lw-eu.apache.org) with ESMTPS id A586A5F64B for ; Fri, 7 Jul 2017 13:09:26 +0000 (UTC) Received: by mail-wr0-f172.google.com with SMTP id k67so46334429wrc.2 for ; Fri, 07 Jul 2017 06:09:26 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cloudsoft-io.20150623.gappssmtp.com; s=20150623; h=from:mime-version:subject:date:references:to:in-reply-to:message-id; bh=I8ivfw4gMaUqJMql+xWhQoSVNtn6WW+PEaoeFNHl72A=; b=IuUUX+QJvOydwkUxWBzMhwNNh/1W2BQL8fDtTdPyEWWY0r2VqmrNV0bxulBlbUNfZ7 kBuIsKnhQY2NfJNKHVVdclh58UMRW71CR0aSQovhf70gfgmOI/ya0CZkeRaJpAOO8F20 xJ5CLmxqqwGVj7ZLU4/vJsKsPtJ4y+G8u3OzcEdsn7fVbJoBTWXQwQGiptMSJivD+ftB pfHfQFPR7TPHc9GtyqGwh4j2JDMFcMf4DRG1Fus9MfATBH3IS4LMUH7muifhvF6Dl7uP JzwI1Ra1hneKkelDowEdY9kiOOBwZVWUc3EN+sLQYwnZzLL/bbsgZNY5LeXz5XSnHACb L9fQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:mime-version:subject:date:references:to :in-reply-to:message-id; bh=I8ivfw4gMaUqJMql+xWhQoSVNtn6WW+PEaoeFNHl72A=; b=Kw6muGwK1BkmKR0V6N1GfFkmODkrT3u++M/IS+zd+Eyur8lXb4P7CNmg45TxxZinUQ b40ELJH9sPJXSUbWMZD9FzDi9b+YFSip7QN4qrEnyEpEJtx5o2+nwq73LLKZoofjm3TG YL2hprTjbr9yWpIp2TkHu0xrCucbQ8sb9/Y8khaEqFbODgEjfQN8OJmiAE7Mf5E/AEo3 EJ5qkdsffRjUPt/CwrfUvRmjdsRBYFM/hfAEz4fseaONgUb3qjCC4/9vD4YDLj2Su92e 63FzIB/RI0CJEoVNrs2aLH9+08dyWUFwl05aodLijLms69fRKZq2thHLQo6vhwHDuXOM 91vg== X-Gm-Message-State: AIVw110xcd0VuJ0tP1eLdDAEA06h/a1H4shbHWQh5RZtgfhTpNIMEcpt EGEsbeC5TlsxycA3woispdjWAYACwSwJkUoPTMt5h9+YK4qLsPI4qBDxriy2OkZZUsD8njTL33o YnFDFjIU= X-Received: by 10.28.199.200 with SMTP id x191mr2238073wmf.94.1499432965893; Fri, 07 Jul 2017 06:09:25 -0700 (PDT) Received: from [192.168.85.176] ([31.13.219.164]) by smtp.gmail.com with ESMTPSA id x131sm2599911wmg.13.2017.07.07.06.09.24 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 07 Jul 2017 06:09:25 -0700 (PDT) From: Svetoslav Neykov Content-Type: multipart/alternative; boundary="Apple-Mail=_B249C305-3743-4388-BCE9-F1904798A02D" Mime-Version: 1.0 (Mac OS X Mail 10.3 \(3273\)) Subject: Re: BROOKLYN-519 suggestion to remove BasicSpecParameter from serializing Date: Fri, 7 Jul 2017 16:09:23 +0300 References: To: dev@brooklyn.apache.org In-Reply-To: Message-Id: <788E7134-543E-4D5C-AED7-6FFDB0FDD574@cloudsoft.io> X-Mailer: Apple Mail (2.3273) X-Legal-Virus-Advice: Whilst all reasonable care has been taken to avoid the transmission of viruses, it is the responsibility of the recipient to ensure that the onward transmission, opening or use of this message and any attachments will not adversely affect its systems or data. No responsibility is accepted by Cloudsoft Corporation Limited in this regard and the recipient should carry out such virus and other checks as it considers appropriate. X-Legal-Confidentiality: This e-mail message is confidential and for use by the addressee only. If the message is received by anyone other than the addressee, please return the message to the sender by replying to it and then delete the message from your computer. Internet e-mails are not necessarily secure. Cloudsoft Corporation Limited does not accept responsibility for changes made to this message after it was sent. X-Legal-Company-Info: Cloudsoft Corporation Limited. Registered in Scotland. Number: SC349230. Registered Office: 13 Dryden Place, Edinburgh, EH9 1RP. archived-at: Fri, 07 Jul 2017 13:09:32 -0000 --Apple-Mail=_B249C305-3743-4388-BCE9-F1904798A02D Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=utf-8 Hi Valentin, Parameters set on the specs are later converted to config keys on the = entity which are then used for type inference and applying restrictions = (can mark parameters as required). That's why I think it would be useful = to keep the parameters passed in from yaml. We had a similar problem with persisting entities - we persisted all of = the config keys regardless of their source, which after changes on the = java types lead to rebind failures. The solution there was to filter out = the config keys coming from the entity's java class and persist only = keys added externally. I think a similar approach would work great here = as well. The changes I'm referring to were done in [1]. Svet. [1] https://github.com/apache/brooklyn-server/pull/440 = > On 7.07.2017 =D0=B3., at 14:55, Valentin Aitken = wrote: >=20 > Hi, >=20 > Like I described in BROOKLYN-519 AbstractBrooklynObjectSpec config = serialization > could be source of deserialization problems in backwards = compatibility. > I reviewed the code and I consider EntitySpecParameters are consumed = only from the API > describing Spec types and catalog items. >=20 > I consider those parameters as NOT related to application deployment = or application management during runtime > thus I suggest to not serialize ConfigKey objects in persistence state = in order to > simplify persistence of Catalog items and AbstractBrooklynObjectSpec = values. [1] >=20 > Could you also verify my assumption and comment? ^ >=20 > [1] https://github.com/apache/brooklyn-server/pull/757 >=20 > --=20 > Valentin Aitken > Software Engineer > Cloudsoft Corporation Ltd. > www.cloudsoft.io >=20 >=20 --Apple-Mail=_B249C305-3743-4388-BCE9-F1904798A02D--