test: fix flaky replication/skip_conflict_row test
Fixed flaky upstream checks at replication/skip_conflict_row test, also check on lsn set in test-run wait condition routine. Errors fixed: [024] @@ -66,11 +66,11 @@ [024] ... [024] box.info.replication[1].upstream.message [024] --- [024] -- null [024] +- timed out [024] ... [024] box.info.replication[1].upstream.status [024] --- [024] -- follow [024] +- disconnected [024] ... [024] box.space.test:select() [024] --- [024] [004] @@ -125,11 +125,11 @@ [004] ... [004] box.info.replication[1].upstream.message [004] --- [004] -- Duplicate key exists in unique index 'primary' in space 'test' [004] -... [004] -box.info.replication[1].upstream.status [004] ---- [004] -- stopped [004] +- null [004] +... [004] +box.info.replication[1].upstream.status [004] +--- [004] +- follow [004] ... [004] test_run:cmd("switch default") [004] --- [004] [038] @@ -174,7 +174,7 @@ [038] ... [038] box.info.replication[1].upstream.status [038] --- [038] -- follow [038] +- disconnected [038] ... [038] -- write some conflicting records on slave [038] for i = 1, 10 do box.space.test:insert({i, 'r'}) end Line 201 (often): [039] @@ -201,7 +201,7 @@ [039] -- lsn should be incremented [039] v1 == box.info.vclock[1] - 10 [039] --- [039] -- true [039] +- false [039] ... [039] -- and state is follow [039] box.info.replication[1].upstream.status [039] [030] @@ -201,12 +201,12 @@ [030] -- lsn should be incremented [030] v1 == box.info.vclock[1] - 10 [030] --- [030] -- true [030] +- false [030] ... [030] -- and state is follow [030] box.info.replication[1].upstream.status [030] --- [030] -- follow [030] +- disconnected [030] ... [030] -- restart server and check replication continues from nop-ed vclock [030] test_run:cmd("switch default") Line 230 (OSX): [022] --- replication/skip_conflict_row.result Thu Apr 16 21:54:28 2020 [022] +++ replication/skip_conflict_row.reject Mon Apr 27 00:52:56 2020 [022] @@ -230,7 +230,7 @@ [022] ... [022] box.info.replication[1].upstream.status [022] --- [022] -- follow [022] +- disconnected [022] ... [022] box.space.test:select({11}, {iterator = "GE"}) [022] --- [022] Close #4457
Showing
- test/replication/skip_conflict_row.result 13 additions, 21 deletionstest/replication/skip_conflict_row.result
- test/replication/skip_conflict_row.test.lua 7 additions, 9 deletionstest/replication/skip_conflict_row.test.lua
- test/replication/suite.ini 0 additions, 1 deletiontest/replication/suite.ini
Please register or sign in to comment