From: Vladislav Shpilevoy <v.shpilevoy@tarantool.org> To: tarantool-patches@dev.tarantool.org, sergepetrenko@tarantool.org Subject: [Tarantool-patches] [PATCH 5/5] [tosquash] replication: add test on local row in the end of sync txn Date: Fri, 3 Jul 2020 01:40:30 +0200 [thread overview] Message-ID: <4e2a3c4e8c51bf6eabf37713e4b34d18e15283c5.1593733161.git.v.shpilevoy@tarantool.org> (raw) In-Reply-To: <cover.1593733161.git.v.shpilevoy@tarantool.org> Currently disabled, because soon should start working without any changes when #4928 is fixed. --- test/replication/qsync_basic.result | 20 ++++++++++++++++++++ test/replication/qsync_basic.test.lua | 20 ++++++++++++++++++++ 2 files changed, 40 insertions(+) diff --git a/test/replication/qsync_basic.result b/test/replication/qsync_basic.result index 339fc0e33..83ff7d3d1 100644 --- a/test/replication/qsync_basic.result +++ b/test/replication/qsync_basic.result @@ -419,6 +419,26 @@ box.space.test:select{9} | - [] | ... +-- +-- gh-4928: test that a sync transaction works fine with local +-- rows in the end. +-- + +-- test_run:switch('default') +-- box.cfg{replication_synchro_timeout = 1000, replication_synchro_quorum = 2} +-- do \ +-- box.begin() \ +-- box.space.sync:replace{10} \ +-- box.space.locallocal:replace({10}) \ +-- box.commit() \ +-- end +-- box.space.sync:select{10} +-- box.space.locallocal:select{10} + +-- test_run:switch('replica') +-- box.space.sync:select{10} +-- box.space.locallocal:select{10} + -- -- gh-5123: quorum 1 still should write CONFIRM. -- diff --git a/test/replication/qsync_basic.test.lua b/test/replication/qsync_basic.test.lua index 6e40131bf..74083a0b9 100644 --- a/test/replication/qsync_basic.test.lua +++ b/test/replication/qsync_basic.test.lua @@ -163,6 +163,26 @@ box.space.sync:select{9} box.space.locallocal:select{9} box.space.test:select{9} +-- +-- gh-4928: test that a sync transaction works fine with local +-- rows in the end. +-- + +-- test_run:switch('default') +-- box.cfg{replication_synchro_timeout = 1000, replication_synchro_quorum = 2} +-- do \ +-- box.begin() \ +-- box.space.sync:replace{10} \ +-- box.space.locallocal:replace({10}) \ +-- box.commit() \ +-- end +-- box.space.sync:select{10} +-- box.space.locallocal:select{10} + +-- test_run:switch('replica') +-- box.space.sync:select{10} +-- box.space.locallocal:select{10} + -- -- gh-5123: quorum 1 still should write CONFIRM. -- -- 2.21.1 (Apple Git-122.3)
next prev parent reply other threads:[~2020-07-02 23:40 UTC|newest] Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top 2020-07-02 23:40 [Tarantool-patches] [PATCH 0/5] Qsync: local rows fixes Vladislav Shpilevoy 2020-07-02 23:40 ` [Tarantool-patches] [PATCH 1/5] [tosquash] replication: fix multiple rollbacks Vladislav Shpilevoy 2020-07-05 9:34 ` Serge Petrenko 2020-07-05 15:13 ` Vladislav Shpilevoy 2020-07-02 23:40 ` [Tarantool-patches] [PATCH 2/5] [tosquash] applier: remove unnecessary fiber name check Vladislav Shpilevoy 2020-07-05 8:40 ` Serge Petrenko 2020-07-02 23:40 ` [Tarantool-patches] [PATCH 3/5] [tosquash] txn_limbo: fix release build Vladislav Shpilevoy 2020-07-05 8:41 ` Serge Petrenko 2020-07-02 23:40 ` [Tarantool-patches] [PATCH 4/5] [tosquash] replication: rework how local transactions wait sync Vladislav Shpilevoy 2020-07-05 9:04 ` Serge Petrenko 2020-07-05 15:13 ` Vladislav Shpilevoy 2020-07-02 23:40 ` Vladislav Shpilevoy [this message] 2020-07-05 9:11 ` [Tarantool-patches] [PATCH 5/5] [tosquash] replication: add test on local row in the end of sync txn Serge Petrenko 2020-07-05 15:13 ` Vladislav Shpilevoy
Reply instructions: You may reply publicly to this message via plain-text email using any one of the following methods: * Save the following mbox file, import it into your mail client, and reply-to-all from there: mbox Avoid top-posting and favor interleaved quoting: https://en.wikipedia.org/wiki/Posting_style#Interleaved_style * Reply using the --to, --cc, and --in-reply-to switches of git-send-email(1): git send-email \ --in-reply-to=4e2a3c4e8c51bf6eabf37713e4b34d18e15283c5.1593733161.git.v.shpilevoy@tarantool.org \ --to=v.shpilevoy@tarantool.org \ --cc=sergepetrenko@tarantool.org \ --cc=tarantool-patches@dev.tarantool.org \ --subject='Re: [Tarantool-patches] [PATCH 5/5] [tosquash] replication: add test on local row in the end of sync txn' \ /path/to/YOUR_REPLY https://kernel.org/pub/software/scm/git/docs/git-send-email.html * If your mail client supports setting the In-Reply-To header via mailto: links, try the mailto: link
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox