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 6C45B2B3A3 for ; Thu, 29 Mar 2018 12:15:21 -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 hiN0vaD3tKFG for ; Thu, 29 Mar 2018 12:15:20 -0400 (EDT) Received: from smtp58.i.mail.ru (smtp58.i.mail.ru [217.69.128.38]) (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 C15C62B34F for ; Thu, 29 Mar 2018 12:15:19 -0400 (EDT) Received: by smtp58.i.mail.ru with esmtpa (envelope-from ) id 1f1aCr-0003v5-1P for tarantool-patches@freelists.org; Thu, 29 Mar 2018 19:15:17 +0300 From: Konstantin Belyavskiy Subject: [tarantool-patches] [PATCH 0/2] [replication] [recovery] recover missing data Date: Thu, 29 Mar 2018 19:15:14 +0300 Message-Id: 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 This changes fix issue with recovery missing local data by using the one from replica. And add vclock comparison as necessarry sync condition. Splitted across two patches: - Add vclock comparison as sync condition and update test. - All required changes to make this recovery possibel and new test. Konstantin Belyavskiy (2): [replication] [recovery] recover missing data [replication] [recovery] recover missing data src/box/applier.cc | 16 +++-- src/box/relay.cc | 16 ++++- src/box/wal.cc | 15 +++- test/replication/catch.result | 5 +- test/replication/recover_missing.result | 116 ++++++++++++++++++++++++++++++ test/replication/recover_missing.test.lua | 41 +++++++++++ test/replication/suite.ini | 2 +- 7 files changed, 199 insertions(+), 12 deletions(-) create mode 100644 test/replication/recover_missing.result create mode 100644 test/replication/recover_missing.test.lua -- 2.14.3 (Apple Git-98)