From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from localhost (localhost [127.0.0.1]) by turing.freelists.org (Avenir Technologies Mail Multiplex) with ESMTP id 558C32FE8C for ; Sun, 23 Jun 2019 05:00:52 -0400 (EDT) Received: from turing.freelists.org ([127.0.0.1]) by localhost (turing.freelists.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id E8jz5uHveeDq for ; Sun, 23 Jun 2019 05:00:52 -0400 (EDT) Received: from smtp33.i.mail.ru (smtp33.i.mail.ru [94.100.177.93]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by turing.freelists.org (Avenir Technologies Mail Multiplex) with ESMTPS id 0746A2FE8B for ; Sun, 23 Jun 2019 05:00:51 -0400 (EDT) Date: Sun, 23 Jun 2019 12:00:48 +0300 From: Konstantin Osipov Subject: [tarantool-patches] Re: [PATCH v2 2/2] swim: introduce incarnation.generation Message-ID: <20190623090048.GC7915@atlas> References: <5efc47df21e3ebf8ab62047ee41db400977c33b0.1561238125.git.v.shpilevoy@tarantool.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <5efc47df21e3ebf8ab62047ee41db400977c33b0.1561238125.git.v.shpilevoy@tarantool.org> Sender: tarantool-patches-bounce@freelists.org Errors-to: tarantool-patches-bounce@freelists.org Reply-To: tarantool-patches@freelists.org List-Help: List-Unsubscribe: List-software: Ecartis version 1.0.0 List-Id: tarantool-patches List-Subscribe: List-Owner: List-post: List-Archive: To: Vladislav Shpilevoy Cc: tarantool-patches@freelists.org * Vladislav Shpilevoy [19/06/23 09:42]: > SWIM uses incarnation to refute old information, but it is not > enough when restarts are possible. If an instance restarts, its > incarnation is reset to 0. After several local and fast updates > it gets N. But it is possible, that other instances also know > incarnation of this instance as N, from its previous life, but > with different information. They will never take new version of > data, because their current version is also considered actual. > > As a result, incarnation is not enough. There was a necessity to > create a persistent part of incarnation. This patch introduces it > and calls 'generation'. As an additional profit, generation > allows to react on instance restart in user defined triggers. > > Closes #4280 lgtm -- Konstantin Osipov, Moscow, Russia