apache / kvrocks

Apache Kvrocks is a distributed key value NoSQL database that uses RocksDB as storage engine and is compatible with Redis protocol.
https://kvrocks.apache.org/
Apache License 2.0
3.47k stars 452 forks source link

Test case failed occasionally in `test/unit/expire.tcl` #742

Closed git-hulk closed 2 years ago

git-hulk commented 2 years ago

Search before asking

Motivation

Check expire at test case failed occasionally, we should fix it to make the CI happy.

*** [err]: EXPIREAT - Check for EXPIRE alike behavior in tests/unit/expire.tcl
Expected '1[345]' to equal or match '16'
Error: Process completed with exit code 1.

Solution

No response

Are you willing to submit a PR?

PragmaTwice commented 2 years ago
*** [err]: PERSIST can undo an EXPIRE in tests/unit/expire.tcl
Expected '50 1 -1 foo' to equal or match '49 1 -1 foo'

Another failure in expire.tcl: https://github.com/apache/incubator-kvrocks/runs/7450339994?check_suite_focus=true

git-hulk commented 2 years ago

Thanks @PragmaTwice, also fixed it by add some tolerant range.