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:
debing.sun 2025-05-14 16:31:41 +08:00 committed by GitHub
parent 232f2fb077
commit ae0bb6e82a
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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]