mirror of
https://github.com/redis/redis.git
synced 2026-04-26 08:38:11 -04:00
Fix internal-secret test flakiness under slow environment (#14024)
in the original test, we start a cluster with 20 instances(10 masters + 10 replicas), which leads to frequent disconnections of instances in a slow environment, resulting in an inability to achieve consistency. This test reduced the number of instances from 20 to 6.
This commit is contained in:
parent
232f2fb077
commit
ae0bb6e82a
1 changed files with 3 additions and 3 deletions
|
|
@ -15,9 +15,9 @@ proc wait_for_secret_sync {maxtries delay num_nodes} {
|
|||
}
|
||||
}
|
||||
|
||||
start_cluster 10 10 {tags {external:skip cluster}} {
|
||||
start_cluster 3 3 {tags {external:skip cluster}} {
|
||||
test "Test internal secret sync" {
|
||||
wait_for_secret_sync 50 100 20
|
||||
wait_for_secret_sync 50 100 6
|
||||
}
|
||||
|
||||
|
||||
|
|
@ -60,7 +60,7 @@ start_cluster 10 10 {tags {external:skip cluster}} {
|
|||
puts [r -1 debug internal_secret]
|
||||
}
|
||||
r cluster meet $first_shard_host $first_shard_port
|
||||
wait_for_secret_sync 50 100 22
|
||||
wait_for_secret_sync 50 100 8
|
||||
if {$::verbose} {
|
||||
puts {internal secret after join to bigger cluster:}
|
||||
puts [r -1 debug internal_secret]
|
||||
|
|
|
|||
Loading…
Reference in a new issue