Skip to content

Lock the exclusive-start scan pagination contract (pre-Step 2 of #422) - #425

Merged
em3s merged 1 commit into
mainfrom
test/issue-422-lock-scan-contract
Jul 16, 2026
Merged

em3s merged 1 commit into
mainfrom
test/issue-422-lock-scan-contract

Conversation

@em3s

@em3s em3s commented Jul 16, 2026

Copy link
Copy Markdown
Contributor

Summary

Preparatory step for #422 (Step 2): lock the scan pagination contract with a test before the ByteArray labels are reworked onto the StorageTable seam.

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

  • Add indexed - offset pagination resumes strictly after the cursor to AbstractLabelCompatibilityTest, so it runs against both the ByteArrayStore and HBase backends. Test-only; no production change.

How to Test

./gradlew :engine:test --tests "*LabelCompatibilityTest" — green on both backends; spotless clean.

AI Assistance

  • This PR was written with AI assistance.
    • Tool / model: Claude Code (Opus 4.8)

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]>
@dosubot dosubot Bot added size:XS This PR changes 0-9 lines, ignoring generated files. maintenance Maintenance work. labels Jul 16, 2026
@em3s

em3s commented Jul 16, 2026

Copy link
Copy Markdown
Contributor Author

Optimistic

@em3s
em3s merged commit f5b10f2 into main Jul 16, 2026
3 checks passed
@em3s
em3s deleted the test/issue-422-lock-scan-contract branch July 16, 2026 09:43
@em3s em3s self-assigned this Jul 20, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

maintenance Maintenance work. size:XS This PR changes 0-9 lines, ignoring generated files.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant