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 DF073200CF7 for ; Tue, 19 Sep 2017 14:52:30 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id DDC431609DD; Tue, 19 Sep 2017 12:52:30 +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 2F20D1609DB for ; Tue, 19 Sep 2017 14:52:30 +0200 (CEST) Received: (qmail 16598 invoked by uid 500); 19 Sep 2017 12:52:29 -0000 Mailing-List: contact dev-help@ignite.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@ignite.apache.org Delivered-To: mailing list dev@ignite.apache.org Received: (qmail 16586 invoked by uid 99); 19 Sep 2017 12:52:28 -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; Tue, 19 Sep 2017 12:52:28 +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 7DE641830A6 for ; Tue, 19 Sep 2017 12:52:28 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd3-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: -0.401 X-Spam-Level: X-Spam-Status: No, score=-0.401 tagged_above=-999 required=6.31 tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, 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: spamd3-us-west.apache.org (amavisd-new); dkim=pass (2048-bit key) header.d=gmail.com Received: from mx1-lw-us.apache.org ([10.40.0.8]) by localhost (spamd3-us-west.apache.org [10.40.0.10]) (amavisd-new, port 10024) with ESMTP id aqInkcdkihVB for ; Tue, 19 Sep 2017 12:52:27 +0000 (UTC) Received: from mail-io0-f177.google.com (mail-io0-f177.google.com [209.85.223.177]) by mx1-lw-us.apache.org (ASF Mail Server at mx1-lw-us.apache.org) with ESMTPS id D31895F659 for ; Tue, 19 Sep 2017 12:52:26 +0000 (UTC) Received: by mail-io0-f177.google.com with SMTP id k101so9691389iod.0 for ; Tue, 19 Sep 2017 05:52:26 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to; bh=+jgAW5We03+V4wCPMHj72HZ/W89mVchoJVHOw2DgxhY=; b=UAURlcTstf4taw5OLzc1fP9EOJ/9C9tkFPhX19/WnR5k05sloB/4JVN0HiO6s+WwNQ epDq3IL3o9HiVWmZOoX3XRA5Umu2NsuBuMRSMN19OLS7xS5hK0+jZMlEkNZtDs+PCbWh E9kA/IaccuP9oUqw9f+ggOG31s+JXiSjJ5zoa1mqTjSSknRnxBPPjZgGtSqlFOKEy5UC FerDgcMoxFy1FuSPGQCFHDCu0Nas1rNe0tiF0FsjNdNLRcZHOxzbh4KxtH/ClkbIys0+ SWlibcjR42BZKk3fIwQqs3bsnFXS/Ag9PvSD6MK18DGmAcFdVI0j9OET61ZHg36mDaDY RVeQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to; bh=+jgAW5We03+V4wCPMHj72HZ/W89mVchoJVHOw2DgxhY=; b=haz6v5DZajaf16uzTJweFeUsIBpNNpKHDBFuZfJy+jYtoIt3GBrhawznzmbkh0Xioi qMquWXzJgQ0tY3g7VJJ8bys+JJRCxzv8vk2VYnQFvbizPqUs2QRVtK+TD8lqQxf+CzXZ SPsNEuul/ZQ6IrMwhbxof8N3TF5mwBZDpv72+JyawUYvJJNFCjBhTSVc3gVAIPkdy+4S JnQx5RDSAmwRwnW1OK4y+Wbx1dZicTyNwRuGYcJbyRNieZMvCtU5ap/ztbpvBogIoZKz z2eLryUr/7KXyZeJgMJSto0P7Qu3MpUTs/CuXdEDJwheEaiASuVK8IHox0GlaJq9Bvi8 GgKw== X-Gm-Message-State: AHPjjUiyqRJz8B4DC9URW9KHihoBEKNAbeKnP8b7dwzyYOtcyksRl8IX yrSYtNHIj9i6upNHW3LaLg+Ge43jDneNuvS1zY8= X-Google-Smtp-Source: AOwi7QDCpTHfsUZzrfYhNiOlfUFD75+xjkvQ24ZwJCvvZhAEc2GJXGwPp8qxVqOwk2zdaGYfLeDSxjaSA1j0TQ5s92s= X-Received: by 10.107.97.12 with SMTP id v12mr2098568iob.76.1505825546126; Tue, 19 Sep 2017 05:52:26 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: From: Dmitry Pavlov Date: Tue, 19 Sep 2017 12:52:15 +0000 Message-ID: Subject: Re: Binary compatibility of persistent storage To: dev@ignite.apache.org Content-Type: multipart/alternative; boundary="089e0825f3ecc548bd05598a542d" archived-at: Tue, 19 Sep 2017 12:52:31 -0000 --089e0825f3ecc548bd05598a542d Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable I have same idea about testing of WAL compatibilty between releases. It will be actual since 2.3 release (as 2.2 was emergency release without impact changes). I look forward to IGNITE-5732 completion and merge. And then I able to start writting first test. I think it is quite unexpected for user if Ignite is not able to start from existing database after updating to next release. That is why I vote for backward compatibilty with automatic transparent migration (if needed). =D0=B2=D1=82, 19 =D1=81=D0=B5=D0=BD=D1=82. 2017 =D0=B3. =D0=B2 15:16, Vyach= eslav Daradur : > I vote for: =E2=80=9C4) Maintain compatibility between all versions withi= n major > release=E2=80=9D. > I think this is a trade-off between the complexity of implementing new > features and UX. > > We will be able to get rid of all legacy tools every major release. > > I=E2=80=99m working on a testing framework, which helps us testing compat= ibility > features between different Ignite version. > Testing in the early stages will help us to consider the impact of change= s > in other releases and to be closer to the end user. > > Here is a dummy unit-test example: > > void testNodeStartByOldVersionPersistenceData() throws Exception { > try { > startGrid(1, "2.1.0", new PostConfigurationClosure(), new > PostActionClosure()); > > stopAllGrids(); // Stopping 2.1.0 > > IgniteEx ignite =3D startGrid(0); // Starting current version > > ignite.active(true); > > IgniteCache cache =3D > ignite.getOrCreateCache(TEST_CACHE_NAME); > > for (int i =3D 0; i < 10; i++) > assertEquals("data" + i, cache.get(i)); > } > finally { > stopAllGrids(); > } > } > > class PostActionClosure implements IgniteInClosure { > @Override public void apply(Ignite ignite) { > ignite.active(true); > > CacheConfiguration cacheCfg =3D new > CacheConfiguration<>(); > > IgniteCache cache =3D ignite.createCache(cacheCf= g); > > for (int i =3D 0; i < 10; i++) > cache.put(i, "data" + i); > } > } > > class PostConfigurationClosure implements > IgniteInClosure { > @Override public void apply(IgniteConfiguration cfg) { > // Post configuration actions > cfg.setPersistentStoreConfiguration(new > PersistentStoreConfiguration()); > } > } > > [1] https://issues.apache.org/jira/browse/IGNITE-5732 - Provide API to > test > compatibility with old releases > > On Tue, Sep 19, 2017 at 2:51 PM, Yakov Zhdanov > wrote: > > > Vladimir, > > > > Can you please describe the situation when 2 is possible, but 4 is not? > > > > --Yakov > > > > > > -- > Best Regards, Vyacheslav D. > --089e0825f3ecc548bd05598a542d--