Skip to content

Commit

Permalink
Fix test Command propagated to replica as expected
Browse files Browse the repository at this point in the history
  • Loading branch information
moticless committed Sep 22, 2024
1 parent 50e1b46 commit 4698603
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion tests/unit/type/hash-field-expire.tcl
Original file line number Diff line number Diff line change
Expand Up @@ -1014,6 +1014,7 @@ start_server {tags {"external:skip needs:debug"}} {
start_server {overrides {appendonly {yes} appendfsync always} tags {external:skip}} {

set aof [get_last_incr_aof_path r]
r debug set-active-expire 0 ;# Prevent fields from being expired during data preparation

# Time is in the past so it should propagate HDELs to replica
# and delete the fields
Expand All @@ -1040,6 +1041,7 @@ start_server {tags {"external:skip needs:debug"}} {
r hpexpireat h2 [expr [clock seconds]*1000+100000] LT FIELDS 1 f3
r hexpireat h2 [expr [clock seconds]+10] NX FIELDS 1 f4

r debug set-active-expire 1
wait_for_condition 50 100 {
[r hlen h2] eq 2
} else {
Expand Down Expand Up @@ -1068,7 +1070,7 @@ start_server {tags {"external:skip needs:debug"}} {
{hdel h2 f2}
}
}
}
} {} {needs:debug}

test "Lazy Expire - fields are lazy deleted and propagated to replicas ($type)" {
start_server {overrides {appendonly {yes} appendfsync always} tags {external:skip}} {
Expand Down

0 comments on commit 4698603

Please sign in to comment.