From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from smtp53.i.mail.ru (smtp53.i.mail.ru [94.100.177.113]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dev.tarantool.org (Postfix) with ESMTPS id 076434696C3 for ; Tue, 7 Apr 2020 18:50:09 +0300 (MSK) From: Serge Petrenko Date: Tue, 7 Apr 2020 18:49:53 +0300 Message-Id: MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Subject: [Tarantool-patches] [PATCH v6 0/3] replication: fix local space tracking List-Id: Tarantool development patches List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: v.shpilevoy@tarantool.org Cc: tarantool-patches@dev.tarantool.org https://github.com/tarantool/tarantool/issues/4114 https://github.com/tarantool/tarantool/tree/sp/gh-4114-local-space-replication Changes in v6: - squash commit 1 into 3 - get rid of vclock_copy_ignore0, make xrow_encode_vclock ignore 0th clock component instead. - review fixes as per review from Vlad Changes in v5: - review fixes as per review from Kostja Changes in v4: - review fixes as per review from Kostja Changes in v3: - rewrite the patches re wal gc rework to avoid matrix clock. Changes in v2: - used Georgy's patches re introduction of matrix clock and wal gc rework to fix the problem with ordering gc consumers by vclock signature Serge Petrenko (3): replication: omit 0-th vclock component in replication responses gc: rely on minimal vclock components instead of signatures box: start counting local space requests separately src/box/box.cc | 17 +++ src/box/gc.c | 41 +++--- src/box/recovery.cc | 8 +- src/box/relay.cc | 17 ++- src/box/replication.cc | 4 +- src/box/vclock.h | 91 +++++++++++++ src/box/wal.c | 16 ++- src/box/xrow.c | 10 +- test/replication/anon.result | 5 + test/replication/anon.test.lua | 2 + test/replication/autobootstrap.result | 6 + test/replication/autobootstrap.test.lua | 2 + test/replication/before_replace.result | 8 +- test/replication/before_replace.test.lua | 4 +- .../gh-4114-local-space-replication.result | 121 ++++++++++++++++++ .../gh-4114-local-space-replication.test.lua | 47 +++++++ test/replication/local_spaces.result | 4 + test/replication/local_spaces.test.lua | 3 + test/replication/misc.result | 6 + test/replication/misc.test.lua | 2 + test/replication/quorum.result | 6 + test/replication/quorum.test.lua | 2 + test/replication/replica_rejoin.result | 9 ++ test/replication/replica_rejoin.test.lua | 3 + test/replication/skip_conflict_row.result | 3 + test/replication/skip_conflict_row.test.lua | 1 + test/replication/suite.cfg | 1 + test/vinyl/errinj.result | 5 + test/vinyl/errinj.test.lua | 4 + 29 files changed, 406 insertions(+), 42 deletions(-) create mode 100644 test/replication/gh-4114-local-space-replication.result create mode 100644 test/replication/gh-4114-local-space-replication.test.lua -- 2.21.1 (Apple Git-122.3)