Skip to content

Commit

Permalink
Lower latenct-monitor-threashold in expire-cycle test case (valkey-io…
Browse files Browse the repository at this point in the history
…#1584)

The test case checks for expire-cycle in LATENCY LATEST, but with the
new hash table, the expiry-cycle is too fast to be logged by latency
monitor. Lower the latency monitor threshold to make it more likely to
be logged.

Fixes valkey-io#1580

---------

Signed-off-by: Viktor Söderqvist <[email protected]>
  • Loading branch information
zuiderkwast authored Jan 19, 2025
1 parent 2d0b8e3 commit b2e4155
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/unit/latency-monitor.tcl
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,7 @@ tags {"needs:debug"} {
} ;# tag

test {LATENCY of expire events are correctly collected} {
r config set latency-monitor-threshold 20
r config set latency-monitor-threshold 1
r config set lazyfree-lazy-expire no
r flushdb
if {$::valgrind} {set count 100000} else {set count 1000000}
Expand Down

0 comments on commit b2e4155

Please sign in to comment.