Skip to content

Disable iteration in crash test when trie UDI is enabled#14430

Open
xingbowang wants to merge 1 commit intofacebook:mainfrom
xingbowang:export-D95410767
Open

Disable iteration in crash test when trie UDI is enabled#14430
xingbowang wants to merge 1 commit intofacebook:mainfrom
xingbowang:export-D95410767

Conversation

@xingbowang
Copy link
Contributor

Summary:
Trie UDI (UserDefinedIndex) does not support SeekToFirst/SeekToLast.
The crash test already disabled prefix scanning (prefixpercent=0) when
use_trie_index=1, but iteration (iterpercent) was still enabled.

During iteration, LevelIterator::SkipEmptyFileForward() internally calls
file_iter_.SeekToFirst() when Next() crosses SST file boundaries within
a level. This propagates to UserDefinedIndexIteratorWrapper::SeekToFirst()
which returns NotSupported, causing "Iterator diverged from control
iterator" / "VerifyIterator failed" errors across many crash test variants.

Fixed by also setting iterpercent=0 when use_trie_index=1 and
redistributing the percentage to reads, matching the existing pattern
for prefixpercent.

Differential Revision: D95410767

Summary:
Trie UDI (UserDefinedIndex) does not support SeekToFirst/SeekToLast.
The crash test already disabled prefix scanning (prefixpercent=0) when
use_trie_index=1, but iteration (iterpercent) was still enabled.

During iteration, LevelIterator::SkipEmptyFileForward() internally calls
file_iter_.SeekToFirst() when Next() crosses SST file boundaries within
a level. This propagates to UserDefinedIndexIteratorWrapper::SeekToFirst()
which returns NotSupported, causing "Iterator diverged from control
iterator" / "VerifyIterator failed" errors across many crash test variants.

Fixed by also setting iterpercent=0 when use_trie_index=1 and
redistributing the percentage to reads, matching the existing pattern
for prefixpercent.

Differential Revision: D95410767
@meta-cla meta-cla bot added the CLA Signed label Mar 5, 2026
@meta-codesync
Copy link

meta-codesync bot commented Mar 5, 2026

@xingbowang has exported this pull request. If you are a Meta employee, you can view the originating Diff in D95410767.

@github-actions
Copy link

github-actions bot commented Mar 5, 2026

✅ clang-tidy: No findings on changed lines

Completed in 0.0s.

@meta-codesync
Copy link

meta-codesync bot commented Mar 5, 2026

@xingbowang has imported this pull request. If you are a Meta employee, you can view this in D95410767.

@pdillinger
Copy link
Contributor

I see internally the diff was abandoned. Can you explain (and close this PR)? @xingbowang

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