Repository navigation
Lock the exclusive-start scan pagination contract (pre-Step 2 of #422) - #425
Merged
Merged
Conversation
Before reworking the ByteArray labels onto the StorageTable seam (#422), pin the scan contract that both backend twins already share: offset pagination resumes strictly after the cursor, so the boundary row is neither duplicated nor skipped (start is exclusive). Added to AbstractLabelCompatibilityTest, so it runs against both the ByteArrayStore and HBase backends and guards the upcoming reactive rewrite against a silent boundary shift (StorageTable.scan uses the opposite, HBase-native start-inclusive/stop-exclusive convention). Co-Authored-By: Claude Opus 4.8 (1M context) <[email protected]>
Contributor
Author
|
Optimistic |
This was referenced Jul 16, 2026
Closed
8 of 21 tasks
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.
Summary
Preparatory step for #422 (Step 2): lock the scan pagination contract with a test before the ByteArray labels are reworked onto the
StorageTableseam.Both backend twins (
ByteArrayHashLabel,HBaseHashLabel) already share the same scan contract — the start bound is exclusive: offset pagination resumes strictly after the cursor, so the boundary row is neither duplicated nor skipped.StorageTable.scan, on the other hand, uses the opposite HBase-native convention (start inclusive, stop exclusive). Pinning this now guards the upcoming reactive rewrite against a silent boundary shift (risk R1 in #422).Part of #422.
Changes
indexed - offset pagination resumes strictly after the cursortoAbstractLabelCompatibilityTest, so it runs against both theByteArrayStoreand HBase backends. Test-only; no production change.How to Test
./gradlew :engine:test --tests "*LabelCompatibilityTest"— green on both backends; spotless clean.AI Assistance