Skip to content

Conversation

hoangmaihuy
Copy link
Contributor

Clear skip when scanning key values as mentioned in issues.

@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)

Copy link
Contributor Author

Choose a reason for hiding this comment

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

@alecgrieser I've added a test case in FDBRecordStoreSplitRecordsTest, please recheck 😄

@alecgrieser alecgrieser added the bug fix Change that fixes a bug label Aug 14, 2025
…ble records on store using splitLongRecords
@alecgrieser alecgrieser changed the title Resolves #3524: FDBRecordStore.scanTypedRecords skips double records on store using splitLongRecords FDBRecordStore.scanTypedRecords would skip double records on a store using splitLongRecords Aug 26, 2025
@alecgrieser alecgrieser merged commit e53b28f into FoundationDB:main Aug 26, 2025
8 checks passed
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.

FDBRecordStore.scanTypedRecords skips double records on store using splitLongRecords
2 participants