Skip to content

Commit f23b535

Browse files
drewdzzzylobankov
authored andcommitted
ignore local lsn in wait_cluster_vclock
When waiting for cluster vclock, local component must be ignored because it's independent on each replica, so the commit fixes corresponding helper.
1 parent 52d3e4f commit f23b535

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

test_run.lua

+5-2
Original file line numberDiff line numberDiff line change
@@ -228,10 +228,13 @@ local function get_cluster_vclock(self, servers)
228228
end
229229

230230
local function wait_cluster_vclock(self, servers, vclock)
231+
-- Ignore local component since it's independent on each replica
232+
local cluster_vclock = table.deepcopy(vclock)
233+
cluster_vclock[0] = nil
231234
for _, name in pairs(servers) do
232-
self:wait_vclock(name, vclock)
235+
self:wait_vclock(name, cluster_vclock)
233236
end
234-
return vclock
237+
return cluster_vclock
235238
end
236239

237240
local switch_cmd1 = "env = require('test_run')"

0 commit comments

Comments
 (0)