Repository navigation
[test] Wait for KV flush before ScanKv tests - #5489
Merged
swuferhong merged 1 commit intoDec 3, 2026
Merged
Conversation
Use the leader KV flush offset to wait for scan data in RocksDB. Check bucket write errors before using the result to set up the scan.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Purpose
Closes #5488.
TabletServiceITCase.testScanKv_explicitClosecan fail during setup when its snapshot request runs before the asynchronous KV flush.Brief change log
waitUntilKvFlushedin the ninescanKvtests so the written rows are visible when the scanner opens its local RocksDB snapshot.assertPutKvResponseso a failed setup write is reported at the write.Tests
testScanKv_explicitClosefailed withNo new snapshot triggered. With the fix and the same delay, all 11testScanKv*cases passed.TabletServiceITCasepassed on Java 11: 29 passed, 2 skipped.API and Format
No changes.
Documentation
No changes.
Generated-by: OpenAI Codex (GPT-6)