mirror of
https://codeberg.org/redict/redict.git
synced 2025-01-22 16:18:28 -05:00
Merge branch 'clusterfixes' into unstable
This commit is contained in:
commit
ca14440aa1
@ -27,12 +27,17 @@ test "Cluster nodes are reachable" {
|
||||
|
||||
test "Cluster nodes hard reset" {
|
||||
foreach_redis_id id {
|
||||
if {$::valgrind} {
|
||||
set node_timeout 10000
|
||||
} else {
|
||||
set node_timeout 3000
|
||||
}
|
||||
catch {R $id flushall} ; # May fail for readonly slaves.
|
||||
R $id MULTI
|
||||
R $id cluster reset hard
|
||||
R $id cluster set-config-epoch [expr {$id+1}]
|
||||
R $id EXEC
|
||||
R $id config set cluster-node-timeout 3000
|
||||
R $id config set cluster-node-timeout $node_timeout
|
||||
R $id config set cluster-slave-validity-factor 10
|
||||
R $id config rewrite
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user