Skip to content

Commit 92eadd7

Browse files
Totktonadaligurio
authored andcommitted
Mark a singleton instance as a leader manually
Otherwise 'set' and 'register' tests, which use synchronous spaces, fail with the 'The synchronous transaction queue doesn't belong to any instance' error. Those tests did pass before the change [1] in tarantool, which was made in the scope of the issue [2]. The commit land into release branches as 2.7.2-160-g7310288fa, 2.8.1-168-g806123567, 2.9.0-221-g362e9a668. [1]: tarantool/tarantool@362e9a6 [2]: tarantool/tarantool#6034 Fixes #92
1 parent 6165e6e commit 92eadd7

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

resources/tarantool/jepsen.lua

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,13 @@ else
2929
end
3030

3131
local function bootstrap()
32+
-- We don't use automatic leader election in the single instance
33+
-- configuration, so we should manually mark this instance as
34+
-- a leader for synchronous transactions processing.
35+
if single_mode then
36+
box.ctl.promote()
37+
end
38+
3239
box.schema.user.create('jepsen', {password = 'jepsen'})
3340
box.schema.user.grant('jepsen', 'create,read,write,execute,drop,alter,replication', 'universe')
3441
box.schema.user.grant('jepsen', 'read,write', 'space', '_index')

0 commit comments

Comments
 (0)