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

Mem compression occurred during the creation of the iterator #439

Open
liluo1990 opened this issue Aug 11, 2023 · 0 comments
Open

Mem compression occurred during the creation of the iterator #439

liluo1990 opened this issue Aug 11, 2023 · 0 comments

Comments

@liluo1990
Copy link

when leveldb create newRawIterator, it will do the following

first step:
em, fm := db.getMems()
second step:
v := db.s.version()

If first between second step, leveldb do a mem compaction。this will lead to the versions have the "fm or em data"。
I see the note NewMergedIterator :
The input's key ranges may overlap, but there are assumed to be no duplicate
keys: if iters[i] contains a key k then iters[j] will not contain that key k.

Is this the expected design?

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

1 participant