Skip to content

Clarify tailing iterator late insert behavior#14794

Open
richinmrudul wants to merge 1 commit into
facebook:mainfrom
richinmrudul:clarify-tailing-iterator-late-insert-behavior
Open

Clarify tailing iterator late insert behavior#14794
richinmrudul wants to merge 1 commit into
facebook:mainfrom
richinmrudul:clarify-tailing-iterator-late-insert-behavior

Conversation

@richinmrudul
Copy link
Copy Markdown

@richinmrudul richinmrudul commented May 27, 2026

Summary:
Clarifies tailing iterator documentation around the view refreshed by Seek()/SeekToFirst() and the fact that Next() is not guaranteed to observe keys inserted after the most recent seek, even when those keys sort after the last key returned.

Adds a focused test covering the case where a key is inserted into the mutable memtable after the iterator has already sought, but is skipped by Next() because the mutable memtable iterator is not refreshed until a later seek/renewal.

Refs #14677

Test Plan:
make db_tailing_iter_test -j8
./db_tailing_iter_test --gtest_filter='Tailing'
git diff --check
make check-sources

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants