Skip to content

Acquire the metastore stores via the StorageBackend seam (Step 3 of #422) - #427

Merged
em3s merged 1 commit into
mainfrom
feat/issue-422-graphdefaults-backend
Jul 16, 2026
Merged

em3s merged 1 commit into
mainfrom
feat/issue-422-graphdefaults-backend

Conversation

@em3s

@em3s em3s commented Jul 16, 2026

Copy link
Copy Markdown
Contributor

Summary

Step 3 of #422 (unify store-backend acquisition): stop constructing ByteArrayStore directly and acquire the metastore stores through the StorageBackend seam, addressed by datastore:// URIs.

Part of #422.

Changes

  • Graph.create() replaces the two raw ByteArrayStore() literals with StorageTables obtained from a MemoryStorageBackend via distinct URIs — datastore://metastore/seed and datastore://metastore/overlay.
  • GraphDefaults.localStore / consolidatedStore change type from ByteArrayStore to StorageTable.
  • LocalBackedJdbcHashLabel builds its local/overlay labels from the StorageTable create overload added in Step 2.
  • GraphFixtures.getLocalMetadata reads through StorageTable.scan.

Safety / scope

Both stores stay in-memory, so behavior and the deploy/rollback safety of the metastore overlay (#390) are unchanged. Distinct table names keep the seed and overlay stores separate (MemoryStorageBackend memoizes by namespace:name). Routing the operational overlay through the configured (potentially HBase) StorageBackend is a later, migration-gated step; the local seed store stays in-memory by design.

How to Test

./gradlew :engine:test :server:test — green (929 tests); spotless clean.

AI Assistance

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

… seam

Replace the two raw ByteArrayStore() constructions in Graph.create with
StorageTable instances acquired from a MemoryStorageBackend by distinct
datastore:// URIs (seed vs overlay), and change GraphDefaults.localStore /
consolidatedStore from ByteArrayStore to StorageTable (Step 3 of #422).

Both stores stay in-memory, so behavior and the deploy/rollback safety of the
metastore overlay are unchanged. Routing the operational overlay through the
configured (potentially HBase) StorageBackend is a later, migration-gated step;
the local seed store stays in-memory by design.

- distinct table names (seed / overlay) keep the two in-memory stores separate
  (MemoryStorageBackend memoizes by namespace:name).
- LocalBackedJdbcHashLabel builds its local/overlay labels from the StorageTable
  create overload added in Step 2.
- GraphFixtures.getLocalMetadata reads through StorageTable.scan.

Co-Authored-By: Claude Opus 4.8 (1M context) <[email protected]>
@dosubot dosubot Bot added size:M This PR changes 30-99 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 898b9d1 into main Jul 16, 2026
3 checks passed
@em3s
em3s deleted the feat/issue-422-graphdefaults-backend branch July 16, 2026 10:13
@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:M This PR changes 30-99 lines, ignoring generated files.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant