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 385B2311BE for ; Thu, 20 Jun 2019 17:22:58 -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 nmwRz2lMCVeb for ; Thu, 20 Jun 2019 17:22:58 -0400 (EDT) Received: from smtp62.i.mail.ru (smtp62.i.mail.ru [217.69.128.42]) (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 A3A86311AC for ; Thu, 20 Jun 2019 17:22:55 -0400 (EDT) From: Vladislav Shpilevoy Subject: [tarantool-patches] [PATCH 0/2] SWIM generation Date: Thu, 20 Jun 2019 23:23:23 +0200 Message-Id: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 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: tarantool-patches@freelists.org Cc: kostja@tarantool.org The patchset introduces SWIM generation - a persistent part of incarnation used to detect restarts, and refute false gossips left from previous lifes of an instance. Branch: http://github.com/tarantool/tarantool/tree/gerold103/gh-4280-swim-generation Issue: https://github.com/tarantool/tarantool/issues/4280 Vladislav Shpilevoy (2): swim: encapsulate incarnation behind 'age' swim: introduce generation extra/exports | 1 + src/lib/swim/swim.c | 300 ++++++++++++++++++++++-------------- src/lib/swim/swim.h | 18 ++- src/lib/swim/swim_proto.c | 77 ++++++--- src/lib/swim/swim_proto.h | 113 ++++++++++---- src/lua/swim.c | 3 +- src/lua/swim.lua | 50 ++++-- test/swim/swim.result | 176 +++++++++++++++++---- test/swim/swim.test.lua | 38 +++++ test/unit/swim.c | 54 +++++-- test/unit/swim.result | 11 +- test/unit/swim_test_utils.c | 54 +++++-- test/unit/swim_test_utils.h | 16 +- 13 files changed, 657 insertions(+), 254 deletions(-) -- 2.20.1 (Apple Git-117)