[Tarantool-patches] [PATCH v2 6/7] replication: tolerate synchro rollback during final join

Vladislav Shpilevoy v.shpilevoy at tarantool.org
Fri Mar 26 23:49:43 MSK 2021


Thanks for working on this!

> diff --git a/test/replication/gh-5566-final-join-synchro.result b/test/replication/gh-5566-final-join-synchro.result
> new file mode 100644
> index 000000000..32749bf12
> --- /dev/null
> +++ b/test/replication/gh-5566-final-join-synchro.result
> @@ -0,0 +1,139 @@
> +-- test-run result file version 2
> +test_run = require('test_run').new()
> + | ---
> + | ...
> +
> +--
> +-- gh-5566 replica tolerates synchronous transactions in final join stream.
> +--
> +_ = box.schema.space.create('sync', {is_sync=true})
> + | ---
> + | ...
> +_ = box.space.sync:create_index('pk')
> + | ---
> + | ...
> +
> +box.schema.user.grant('guest', 'replication')
> + | ---
> + | ...
> +box.schema.user.grant('guest', 'write', 'space', 'sync')
> + | ---
> + | ...
> +
> +-- Part 1. Make sure a joining instance tolerates synchronous rows in final join
> +-- stream.
> +trig = function()\
> +    box.space.sync:replace{1}\
> +end

You might need to increase the synchro timeout because the default can
be flaky.


More information about the Tarantool-patches mailing list