Skip to content

Commit

Permalink
Orchestrator analysis-locked-hypothesis test is unstable
Browse files Browse the repository at this point in the history
openark#1464

Problem:
analysis-locked-hypothesis test is unstable

Cause:
By default instance is polled every 5 seconds, but we wait only for
2 seconds, so it may happen that instance is not polled before we
get the analysis result.

Solution:
Wait for 7 seconds after disabling instance. It is 7 because it has
to be > 5 but LockedSemiSyncMasterHypothesis is reported only within
6 secs window (InstancePollSeconds + ReasonableInstanceCheckSeconds),
then it switches to LockedSemiSyncMaster status.
  • Loading branch information
kamil-holubicki committed Dec 29, 2022
1 parent f3ed383 commit 5122a0a
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -10,4 +10,4 @@ orchestrator-client -c enable-semi-sync-replica -i 127.0.0.1:10112
sleep 2

orchestrator-client -c disable-semi-sync-replica -i 127.0.0.1:10112
sleep 2
sleep 7

0 comments on commit 5122a0a

Please sign in to comment.