Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Deflake total sum of full synchronizations #622

Open
wants to merge 1 commit into
base: unstable
Choose a base branch
from
Open
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
7 changes: 5 additions & 2 deletions tests/integration/psync2.tcl
Original file line number Diff line number Diff line change
Expand Up @@ -290,14 +290,17 @@ start_server {} {
show_cluster_status
}

test "PSYNC2: total sum of full synchronizations is exactly 4" {
test "PSYNC2: total sum of full synchronizations at least 4" {
# During the setup, four full syncs were performed. It is also possible that one
# of the disconnected replicas may be forced to full sync during the
# 'generate load while killing replication links' test.
set sum 0
for {set j 0} {$j < 5} {incr j} {
incr sum [status $R($j) sync_full]
}
if {$sum != 4} {
show_cluster_status
assert {$sum == 4}
assert {$sum >= 4}
}
}

Expand Down
Loading