Skip to content

Add ByteArrayStore-backed Hash/Indexed labels to main (reverted) - #420

Merged
em3s merged 2 commits into
mainfrom
bytearray-labels-main
Jul 16, 2026
Merged

em3s merged 2 commits into
mainfrom
bytearray-labels-main

Conversation

@em3s

@em3s em3s commented Jul 16, 2026 •

Copy link
Copy Markdown
Contributor

Summary

Adds ByteArrayHashLabel and ByteArrayIndexedLabel, storage-agnostic twins of the HBase labels backed by an in-memory ByteArrayStore. Every edge kind is encoded in the row key, so a single ordered store reproduces the HBase semantics without table provisioning.

This is the same change previously merged into bytearray-c as #419, cherry-picked onto main so it no longer depends on the MetastoreInspector removal (#418).

Changes

  • Add ByteArrayHashLabel / ByteArrayIndexedLabel (row-key encoded, in-memory ByteArrayStore).
  • Add AbstractLabelCompatibilityTest, a backend-agnostic JUnit 5 suite covering the hash round-trip, delete, degree counter, and indexed range scan.
  • Add ByteArrayLabelCompatibilityTest and HBaseLabelCompatibilityTest, which run the shared suite against the ByteArrayStore- and mock-HBase-backed labels so the twins are held to identical semantics.

How to Test

./gradlew :engine:test --tests "com.kakao.actionbase.v2.engine.label.bytearray.ByteArrayLabelCompatibilityTest" --tests "com.kakao.actionbase.v2.engine.label.hbase.HBaseLabelCompatibilityTest"

AI Assistance

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

@dosubot dosubot Bot added size:L This PR changes 100-499 lines, ignoring generated files. enhancement New feature or request labels Jul 16, 2026
Co-Authored-By: Claude Opus 4.8 <[email protected]>
@em3s
em3s merged commit 7f726b8 into main Jul 16, 2026
2 checks passed
@em3s
em3s deleted the bytearray-labels-main branch July 16, 2026 01:02
@em3s em3s changed the title Add ByteArrayStore-backed Hash/Indexed labels Add ByteArrayStore-backed Hash/Indexed labels to main Jul 16, 2026
@em3s

em3s commented Jul 16, 2026

Copy link
Copy Markdown
Contributor Author

This PR was merged prematurely by an automated agent without human review. The merge commit has been reverted from main via force-push (main is back at 0ca3924). The change itself is fine — code and tests are unchanged and CI was green. Reopening the identical change as a fresh PR for proper human review. Apologies for the noise.

@em3s em3s changed the title Add ByteArrayStore-backed Hash/Indexed labels to main Add ByteArrayStore-backed Hash/Indexed labels to main (reverted) Jul 16, 2026
@em3s

em3s commented Jul 16, 2026

Copy link
Copy Markdown
Contributor Author

This has been applied to main in #421.

@em3s em3s self-assigned this Jul 16, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request size:L This PR changes 100-499 lines, ignoring generated files.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant