Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
ruanhaishen
redis
Commits
ca14440a
Commit
ca14440a
authored
Jan 22, 2015
by
antirez
Browse files
Merge branch 'clusterfixes' into unstable
parents
e4d65e35
d5ba544e
Changes
1
Hide whitespace changes
Inline
Side-by-side
tests/cluster/tests/includes/init-tests.tcl
View file @
ca14440a
...
...
@@ -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
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment