Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
ruanhaishen
redis
Commits
d5ba544e
Commit
d5ba544e
authored
Jan 22, 2015
by
antirez
Browse files
Cluster test: when valgrind is enabled, use a larger node-timeout.
Removes some percentage of timing related failures.
parent
a330b6ca
Changes
1
Hide whitespace changes
Inline
Side-by-side
tests/cluster/tests/includes/init-tests.tcl
View file @
d5ba544e
...
@@ -27,12 +27,17 @@ test "Cluster nodes are reachable" {
...
@@ -27,12 +27,17 @@ test "Cluster nodes are reachable" {
test
"Cluster nodes hard reset"
{
test
"Cluster nodes hard reset"
{
foreach_redis_id id
{
foreach_redis_id id
{
if
{
$::valgrind
}
{
set node_timeout 10000
}
else
{
set node_timeout 3000
}
catch
{
R $id flushall
}
;
# May fail for readonly slaves.
catch
{
R $id flushall
}
;
# May fail for readonly slaves.
R $id MULTI
R $id MULTI
R $id cluster reset hard
R $id cluster reset hard
R $id cluster set-config-epoch
[
expr
{
$id
+1
}]
R $id cluster set-config-epoch
[
expr
{
$id
+1
}]
R $id EXEC
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 set cluster-slave-validity-factor 10
R $id config rewrite
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