Skip to content

Address system storage by URI scheme, drop JDBC path (#398) - #410

Merged
em3s merged 6 commits into
mainfrom
feat/issue-398-storage-uri-scheme
Jul 16, 2026
Merged

em3s merged 6 commits into
mainfrom
feat/issue-398-storage-uri-scheme

Conversation

@em3s

@em3s em3s commented Jul 11, 2026 •

Copy link
Copy Markdown
Contributor

Summary

Address system storage by URI scheme instead of named Storage entities, and drop the unused JDBC-only label path. Follows #399 (which blocked Storage creation) and continues retiring the v2 Storage model (#398).

Part of #398

Scheme

A label's storage is now a self-describing datastore:// URI resolved directly in getStorage:

  • datastore://__sys__/metastore — RDB-backed system metastore (local + global)
  • datastore://<namespace>/<table> — HBase datastore

Bare-name storage references still resolve via the storages map, so existing labels are unaffected.

Changes

  • getStorage collapses to a single scheme; __sys__/metastore resolves to a local-backed metastore storage.
  • Metadata system labels reference datastore://__sys__/metastore; the LOCAL/JDBC Storage entities and their boot-time seeding are removed.
  • Drop the JDBC-only materialization path — nothing runs a label on a standalone JDBC store in production. Removes JdbcStorage/JdbcOptions, the is JdbcStorage branch, the StorageType.JDBC materialize branch, and JdbcHashLabel's create factory. JdbcHashLabel stays as the delegate base of LocalBackedJdbcHashLabel.

How to Test

./gradlew :engine:test — system metadata boots and materializes over the metastore URI; existing labels with bare-name/HBase storage continue to resolve.

AI Assistance

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

@dosubot dosubot Bot added enhancement New feature or request maintenance Maintenance work. size:L This PR changes 100-499 lines, ignoring generated files. labels Jul 11, 2026
System labels no longer reference named Storage entities seeded into the
metastore. Instead their storage is a self-describing datastore:// URI
resolved directly in getStorage:

  datastore://__sys__/metastore   -> RDB-backed system metastore (local+global)
  datastore://<namespace>/<table> -> HBase datastore

This removes the LOCAL/JDBC Storage entities and their boot-time seeding
from Metadata, and collapses getStorage to a single scheme.

The JDBC-only materialization path is dropped as well: nothing runs a
label on a standalone JDBC store in production (metastore labels are
local-backed). Removes JdbcStorage/JdbcOptions, the is-JdbcStorage
branch in LabelEntity.materialize, the StorageType.JDBC materialize
branch, and JdbcHashLabel's create factory. JdbcHashLabel itself stays
as the delegate base of LocalBackedJdbcHashLabel.

Legacy bare-name storage references still resolve via the storages map,
so existing labels are unaffected.

Co-Authored-By: Claude Opus 4.8 (1M context) <[email protected]>
@em3s
em3s force-pushed the feat/issue-398-storage-uri-scheme branch from c4514cd to 4ced41a Compare July 11, 2026 14:15
…e-uri-scheme

# Conflicts:
#	engine/src/main/kotlin/com/kakao/actionbase/v2/engine/Graph.kt
#	engine/src/main/kotlin/com/kakao/actionbase/v2/engine/metadata/Metadata.kt
#	engine/src/test/kotlin/com/kakao/actionbase/v2/engine/test/GraphFixtures.kt
@em3s em3s self-assigned this Jul 15, 2026
em3s and others added 4 commits July 16, 2026 11:52
Merging main brought in the in-memory ByteArrayStore local metastore (#413),
whose ByteArrayIndexedLabel rejects unknown index names. The empty-src scan
test still requested created_at_desc, which the old H2 path silently ignored.
Route it through indexName=null (__default__), the real scan path for
metastore-backed HASH labels.

Co-Authored-By: Claude Opus 4.8 (1M context) <[email protected]>
…by the merge

#411 removed the dead v1 online_metadata constant on main; merging main back
into this branch resurrected it (unused). Remove it again to match main.

Co-Authored-By: Claude Opus 4.8 (1M context) <[email protected]>
The URI-scheme convention is documented once at EngineConstants; the
"no longer seeded / now references" comments only narrate the change and
duplicate that doc.

Co-Authored-By: Claude Opus 4.8 (1M context) <[email protected]>
@em3s

em3s commented Jul 16, 2026

Copy link
Copy Markdown
Contributor Author

No breaking change, no user-facing change.

Optimistic merge.

@em3s
em3s merged commit ebf98a0 into main Jul 16, 2026
2 checks passed
@em3s
em3s deleted the feat/issue-398-storage-uri-scheme branch July 16, 2026 03:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request maintenance Maintenance work. 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