Repository navigation
Acquire the metastore stores via the StorageBackend seam (Step 3 of #422) - #427
Merged
Merged
Conversation
… 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]>
6 of 8 tasks
Contributor
Author
|
Optimistic |
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
Step 3 of #422 (unify store-backend acquisition): stop constructing
ByteArrayStoredirectly and acquire the metastore stores through theStorageBackendseam, addressed bydatastore://URIs.Part of #422.
Changes
Graph.create()replaces the two rawByteArrayStore()literals withStorageTables obtained from aMemoryStorageBackendvia distinct URIs —datastore://metastore/seedanddatastore://metastore/overlay.GraphDefaults.localStore/consolidatedStorechange type fromByteArrayStoretoStorageTable.LocalBackedJdbcHashLabelbuilds its local/overlay labels from theStorageTablecreateoverload added in Step 2.GraphFixtures.getLocalMetadatareads throughStorageTable.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 (
MemoryStorageBackendmemoizes bynamespace:name). Routing the operational overlay through the configured (potentially HBase)StorageBackendis 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