Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

When enabled RocksDB's blob_db support, non-blob key could be lost randomly #230

Open
leonliao opened this issue Apr 13, 2023 · 2 comments

Comments

@leonliao
Copy link

Description

When rocks.enable_blob_files is enabled, non-blob key could be gone randomly, either before TTL reached or no TTL is set at all.

Expected Behavior

Keys with TTL must be present before TTL reaches.
Keys without TTL must be present before the user explicitly deletes them.

Current Behavior

Keys(only non-blob key) are gone randomly.

Possible Solution

Related to facebook/rocksdb#10391

Steps to Reproduce (for bugs)

  1. Insert a key(named KEYA) without TTL, and value size < min_blob_size
  2. At the same time, using redis-benchmark to set keys with value size greater than min_blob_size
  3. invoke reshape to trigger RocksDB to compact

Will find out the KEYA will be gone.

Context

Your Environment

Tendis 2.5.0

@takenliu
Copy link
Collaborator

好,谢谢反馈,我们考虑下解决方法~

leonliao added a commit to leonliao/Tendis that referenced this issue Apr 13, 2023
@takenliu
Copy link
Collaborator

这是rocksdb早期版本的一个bug,tendis2.7.0版本将rocksdb升级到了8.5.3版本,从而解决了这个问题。感谢leon的建议~

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants