"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "tests/integration/replication-4.tcl" between
redis-6.2.4.tar.gz and redis-6.2.5.tar.gz

About: redis is an advanced key-value store. It is often referred to as a data structure server since keys can contain strings, hashes, lists, sets and sorted sets.

replication-4.tcl  (redis-6.2.4):replication-4.tcl  (redis-6.2.5)
skipping to change at line 24 skipping to change at line 24
$slave slaveof $master_host $master_port $slave slaveof $master_host $master_port
after 1000 after 1000
s 0 role s 0 role
} {slave} } {slave}
test {Test replication with parallel clients writing in different DBs} { test {Test replication with parallel clients writing in different DBs} {
after 5000 after 5000
stop_bg_complex_data $load_handle0 stop_bg_complex_data $load_handle0
stop_bg_complex_data $load_handle1 stop_bg_complex_data $load_handle1
stop_bg_complex_data $load_handle2 stop_bg_complex_data $load_handle2
set retry 10 wait_for_condition 100 100 {
while {$retry && ([$master debug digest] ne [$slave debug digest])}\ [$master debug digest] == [$slave debug digest]
{ } else {
after 1000
incr retry -1
}
assert {[$master dbsize] > 0}
if {[$master debug digest] ne [$slave debug digest]} {
set csv1 [csvdump r] set csv1 [csvdump r]
set csv2 [csvdump {r -1}] set csv2 [csvdump {r -1}]
set fd [open /tmp/repldump1.txt w] set fd [open /tmp/repldump1.txt w]
puts -nonewline $fd $csv1 puts -nonewline $fd $csv1
close $fd close $fd
set fd [open /tmp/repldump2.txt w] set fd [open /tmp/repldump2.txt w]
puts -nonewline $fd $csv2 puts -nonewline $fd $csv2
close $fd close $fd
puts "Master - Replica inconsistency" fail "Master - Replica inconsistency, Run diff -u against /tmp/r
puts "Run diff -u against /tmp/repldump*.txt for more info" epldump*.txt for more info"
} }
assert_equal [r debug digest] [r -1 debug digest] assert {[$master dbsize] > 0}
} }
} }
} }
start_server {tags {"repl"}} { start_server {tags {"repl"}} {
start_server {} { start_server {} {
set master [srv -1 client] set master [srv -1 client]
set master_host [srv -1 host] set master_host [srv -1 host]
set master_port [srv -1 port] set master_port [srv -1 port]
set slave [srv 0 client] set slave [srv 0 client]
 End of changes. 3 change blocks. 
12 lines changed or deleted 6 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)