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
b726d642
Unverified
Commit
b726d642
authored
May 12, 2020
by
Salvatore Sanfilippo
Committed by
GitHub
May 12, 2020
Browse files
Merge pull request #7240 from oranagra/fix_replication_test
fix unstable replication test
parents
1750513a
b4416280
Changes
1
Hide whitespace changes
Inline
Side-by-side
tests/integration/replication.tcl
View file @
b726d642
...
@@ -513,9 +513,9 @@ start_server {tags {"repl"}} {
...
@@ -513,9 +513,9 @@ start_server {tags {"repl"}} {
set master_port
[
srv 0 port
]
set master_port
[
srv 0 port
]
set master_pid
[
srv 0 pid
]
set master_pid
[
srv 0 pid
]
# put enough data in the db that the rdb file will be bigger than the socket buffers
# put enough data in the db that the rdb file will be bigger than the socket buffers
# and since we'll have key-load-delay of 100,
1
0000 keys will take at least
1
second
# and since we'll have key-load-delay of 100,
2
0000 keys will take at least
2
second
s
# we also need the replica to process requests during transfer
(
which it does only once in 2mb
)
# we also need the replica to process requests during transfer
(
which it does only once in 2mb
)
$master debug populate
1
0000 test 10000
$master debug populate
2
0000 test 10000
$master config set rdbcompression no
$master config set rdbcompression no
# If running on Linux, we also measure utime/stime to detect possible I/O handling issues
# If running on Linux, we also measure utime/stime to detect possible I/O handling issues
set os
[
catch
{
exec unamee
}]
set os
[
catch
{
exec unamee
}]
...
...
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