mirror of
https://github.com/scylladb/scylladb.git
synced 2026-05-23 08:12:08 +00:00
The previous check would find a leader once and assume that it does not change, and that the first attempt at sending a request to this leader succeeds. In reality the leader may change at the end of the test (e.g. it may be in the middle of stepping down when we find it) and in general it may take some time for the cluster to stabilize. The new check tries a few times to find a leader and perform a request - until a time limit is reached. The commit also removes an incorrect assertion inside in `wait_for_leader`.