"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "tests/sentinel/tests/includes/init-tests.tcl" between
redis-6.2-rc3.tar.gz and redis-6.2.0.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.

init-tests.tcl  (redis-6.2-rc3):init-tests.tcl  (redis-6.2.0)
skipping to change at line 44 skipping to change at line 44
foreach_sentinel_id id { foreach_sentinel_id id {
S $id SENTINEL MONITOR mymaster \ S $id SENTINEL MONITOR mymaster \
[get_instance_attrib redis $master_id host] \ [get_instance_attrib redis $master_id host] \
[get_instance_attrib redis $master_id port] $quorum [get_instance_attrib redis $master_id port] $quorum
} }
foreach_sentinel_id id { foreach_sentinel_id id {
assert {[S $id sentinel master mymaster] ne {}} assert {[S $id sentinel master mymaster] ne {}}
S $id SENTINEL SET mymaster down-after-milliseconds 2000 S $id SENTINEL SET mymaster down-after-milliseconds 2000
S $id SENTINEL SET mymaster failover-timeout 20000 S $id SENTINEL SET mymaster failover-timeout 20000
S $id SENTINEL SET mymaster parallel-syncs 10 S $id SENTINEL SET mymaster parallel-syncs 10
S $id SENTINEL SET mymaster notification-script ../../tests/includes/not if {$::leaked_fds_file != "" && [exec uname] == "Linux"} {
ify.sh S $id SENTINEL SET mymaster notification-script ../../tests/helpers/
S $id SENTINEL SET mymaster client-reconfig-script ../../tests/includes/ check_leaked_fds.tcl
notify.sh S $id SENTINEL SET mymaster client-reconfig-script ../../tests/helpe
rs/check_leaked_fds.tcl
}
} }
} }
test "(init) Sentinels can talk with the master" { test "(init) Sentinels can talk with the master" {
foreach_sentinel_id id { foreach_sentinel_id id {
wait_for_condition 1000 50 { wait_for_condition 1000 50 {
[catch {S $id SENTINEL GET-MASTER-ADDR-BY-NAME mymaster}] == 0 [catch {S $id SENTINEL GET-MASTER-ADDR-BY-NAME mymaster}] == 0
} else { } else {
fail "Sentinel $id can't talk with the master." fail "Sentinel $id can't talk with the master."
} }
 End of changes. 1 change blocks. 
4 lines changed or deleted 6 lines changed or added

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