Skip to content

Commit

Permalink
Disable empty shard slot migration test until test is de-flaked (#859)
Browse files Browse the repository at this point in the history
We have a number of test failures in the empty shard migration which
seem to be related to race conditions in the failover, but could be more
pervasive. For now disable the tests to prevent so many false negative
test failures.

Signed-off-by: Madelyn Olson <[email protected]>
  • Loading branch information
madolson authored Jul 31, 2024
1 parent 4b8de6b commit b728e41
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions tests/unit/cluster/slot-migration.tcl
Original file line number Diff line number Diff line change
Expand Up @@ -216,6 +216,9 @@ proc create_empty_shard {p r} {
wait_for_role $p master
}

# Temporarily disable empty shard migration tests while we
# work to reduce their flakiness. See https://github.com/valkey-io/valkey/issues/858.
if {0} {
start_cluster 3 5 {tags {external:skip cluster} overrides {cluster-allow-replica-migration no cluster-node-timeout 1000} } {

set node_timeout [lindex [R 0 CONFIG GET cluster-node-timeout] 1]
Expand Down Expand Up @@ -292,6 +295,7 @@ start_cluster 3 5 {tags {external:skip cluster} overrides {cluster-allow-replica
wait_for_slot_state 7 "\[609-<-$R0_id\]"
}
}
}

proc migrate_slot {from to slot} {
set from_id [R $from CLUSTER MYID]
Expand Down

0 comments on commit b728e41

Please sign in to comment.