Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions t/230-orphan-not-stalling-init.t
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,7 @@ test:test('Check orphan mode not stalling queue', function(test)
local attempts = 0
-- Wait for replica to connect.
while box.info.replication[3] == nil or
box.info.replication[3].downstream == nil or
box.info.replication[3].downstream.status ~= 'follow' do

attempts = attempts + 1
Expand Down
7 changes: 5 additions & 2 deletions t/tnt/init.lua
Original file line number Diff line number Diff line change
Expand Up @@ -122,8 +122,11 @@ local function tnt_cluster_prepare(cfg_args)

local attempts = 0

-- Wait for replica to connect.
while box.info.replication[2] == nil or box.info.replication[2].downstream.status ~= 'follow' do
-- Wait for replica to connect. It is listed once it is registered in
-- _cluster, but has no downstream until it subscribes.
while box.info.replication[2] == nil or
box.info.replication[2].downstream == nil or
box.info.replication[2].downstream.status ~= 'follow' do
attempts = attempts + 1
if attempts == 30 then
error('wait for replica connection')
Expand Down
Loading