When running YugabyteDB with Yedis. We noticed keys "disappearing" after running Yugabyte over a longer period of time. When we dug into the issue, originally we thought that since the memstore_size_mb defaulted to 128 Mb, that if running over a long time, an auto job kicks off and compacts/deletes stale keys.
When using the keys * command keys would be missing.
When using the get command though the keys and their values were returned.
To reproduce this,
./bin/yb-admin compact_table system_redis redis --master_addresses {pod-name}:7100keys *, sometimes got no keys, sometimes got only some keys.get {{KEY}}, got the correct test key and value.Our environment is running a single replica of Yugabyte in kubernetes.
Yugabyte version: 2.0.1.0-b19
Hi @dmosruby, thanks a lot for reporting the issue with a detailed description of repro steps. We were able to reproduce it in-house and already have a fix under code-review.
Thank you so much for getting to this so quickly @rahuldesirazu ! Looking forward to pulling down the next fixed release.