Skip to content

Resolves #3524: FDBRecordStore.scanTypedRecords skips double records on store using splitLongRecords #3525

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

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

hoangmaihuy
Copy link

Clear skip when scanning key values as mentioned in issues.

…ble records on store using splitLongRecords
@hoangmaihuy hoangmaihuy force-pushed the fix-scan-records-skip branch from 4e5a792 to 5f8a74e Compare August 5, 2025 05:14
@@ -1322,7 +1322,7 @@ public <M extends Message> RecordCursor<FDBStoredRecord<M>> scanTypedRecords(@No
.setContext(context).setContinuation(continuation)
.setLow(low, lowEndpoint)
.setHigh(high, highEndpoint)
.setScanProperties(scanProperties.with(ExecuteProperties::clearRowAndTimeLimits).with(ExecuteProperties::clearState))
.setScanProperties(scanProperties.with(ExecuteProperties::clearRowAndTimeLimits).with(ExecuteProperties::clearSkipAndLimit).with(ExecuteProperties::clearState))
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We should probably add a test for this that shows that the skip was being incorrectly skipped before (and now works)

@alecgrieser alecgrieser added the bug fix Change that fixes a bug label Aug 14, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug fix Change that fixes a bug
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants