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 6C38C208BF for ; Fri, 11 Jan 2019 08:31:48 -0500 (EST) 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 rmi43N-U3Se8 for ; Fri, 11 Jan 2019 08:31:48 -0500 (EST) Received: from smtpng2.m.smailru.net (smtpng2.m.smailru.net [94.100.179.3]) (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 09AE71FA38 for ; Fri, 11 Jan 2019 08:31:47 -0500 (EST) Received: by smtpng2.m.smailru.net with esmtpa (envelope-from ) id 1ghwuX-00045L-VP for tarantool-patches@freelists.org; Fri, 11 Jan 2019 16:31:46 +0300 From: Georgy Kirichenko Subject: [tarantool-patches] Re: [PATCH 0/5] Strong sequentially LSN in journal Date: Fri, 11 Jan 2019 16:31:45 +0300 Message-ID: <7270106.Yd7cKyjVDs@localhost> In-Reply-To: References: MIME-Version: 1.0 Content-Type: multipart/signed; boundary="nextPart10825867.O8EmBnmjKM"; micalg="pgp-sha256"; protocol="application/pgp-signature" 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 --nextPart10825867.O8EmBnmjKM Content-Transfer-Encoding: 7Bit Content-Type: text/plain; charset="us-ascii" Branch: https://github.com/tarantool/tarantool/tree/g.kirichenko/gh-980-disable-lsn-gaps Issue: https://github.com/tarantool/tarantool/issues/980 On Friday, January 4, 2019 1:34:10 PM MSK you wrote: > The patchset eliminates LSN gaps from journal what is needed for > synchronous replication to enforce data stream consistency. > Replicaset vclock is promoted only after write, replication row applying > is allowed only if previous row was processed. All conflicting rows to skip > are replacing with NOPs to fill gaps. After all vclock following > protected with assert to ensure that this is strict one step increase. > > Needed for: #980 > > Georgy Kirichenko (5): > Do not promote wal vclock for failed writes > Update replicaset vclock from wal > Enforce applier out of order protection > Emit NOP if an applier skips row > Disallow lsn gaps while vclock following > > src/box/applier.cc | 113 ++++++++++++++++-------------- > src/box/box.cc | 3 +- > src/box/replication.cc | 2 + > src/box/replication.h | 3 + > src/box/vclock.c | 16 ++++- > src/box/vclock.h | 3 + > src/box/wal.c | 57 ++++++--------- > src/box/xrow.c | 2 +- > test/unit/vclock.cc | 10 +-- > test/xlog-py/dup_key.result | 12 +++- > test/xlog-py/dup_key.test.py | 18 +++-- > test/xlog/errinj.result | 1 - > test/xlog/panic_on_lsn_gap.result | 65 +++++++++-------- > 13 files changed, 167 insertions(+), 138 deletions(-) --nextPart10825867.O8EmBnmjKM Content-Type: application/pgp-signature; name="signature.asc" Content-Description: This is a digitally signed message part. Content-Transfer-Encoding: 7Bit -----BEGIN PGP SIGNATURE----- iQEzBAABCAAdFiEEFZT35EtIMRTDS5hJnoTdFFzh6LUFAlw4msEACgkQnoTdFFzh 6LUQdwf9EvKCE0z+BkjBz8rd5GrKFqZNNMKZdhUctnq7dHysUH63JfT4nYmVhULL V52iTcuB3Xy0sWX6o5RuDmzcK15FqumKJHPN6P+wNgoRWsSebUg96yDR5irAV7P5 hFAY+/4wucf1hafn/Aoosxf9rttt6Ha3uaO3Pr0tMQxIz2BQ2JiKNKDEGNsYzTYq VbCnzZLexn0S+MUmmyd8C+4C4YlebeC2+u4C8grJBJb8SDkS4ViyqG1ZEp+NOdgD 3QZ0kE4kLHtagWcTWK8bQbtSMfa/ayo6F5VjDO/xIdokMys3CFcqD036gnDR1cUu dxCMOLeFy7gUsTMzDAC9kUgHOZNF/g== =QLqp -----END PGP SIGNATURE----- --nextPart10825867.O8EmBnmjKM--