Repository navigation
Remove the dead MetastoreInspector and its dump endpoints - #418
Merged
Merged
Conversation
MetastoreInspector and MetastoreController only powered the debug
/graph/v2/metastore/{global,local} dump endpoints, which are unused.
Drop them along with the two inspector beans and the Graph property.
Co-Authored-By: Claude Opus 4.8 (1M context) <[email protected]>
This was referenced Jul 15, 2026
1 task done
* Add ByteArrayStore-backed Hash/Indexed labels (#419) * style: apply spotless formatting Co-Authored-By: Claude Opus 4.8 <[email protected]> --------- Co-authored-by: Claude Opus 4.8 <[email protected]>
# Conflicts: # engine/src/test/kotlin/com/kakao/actionbase/v2/engine/label/AbstractLabelCompatibilityTest.kt
1 task done
Contributor
Author
|
This PR removes the following endpoints:
These are not user-facing endpoints, and will not be used once the metastore is consolidated into datastore. |
Contributor
Author
|
Merging |
Closed
8 of 21 tasks
This was referenced Aug 10, 2026
em3s
added a commit
that referenced
this pull request
Aug 11, 2026
#418 removed `MetastoreInspector` and its dump endpoints as dead code, which they were - nothing called them. Something does now. `jdbc-metastore remaining` (#487) measures how much room each metadata scan window has left, and this is the only view of the rows such a scan actually reads. It has to be the rows on disk, not the entities. A metadata `DELETE` rewrites its row with `Active.INACTIVE` rather than removing it, and `JdbcHashLabel.scanStorage` applies its `LIMIT` before anything filters on active, so a scan key crowded with tombstones truncates while `DdlService.getAll` drops the `hasNext` that would have said so. Every read path hides exactly what needs measuring. This is scaffolding for the move to EdgeIndex and goes when the JDBC metastore does. Named for that store rather than for the idea of a metastore: `JdbcMetastoreInspector`, `JdbcMetastoreController`, `JdbcMetastoreRow`. Only the JDBC one has scan windows that fill with tombstones, and a name that claimed the general concept would have to be repurposed or quietly keep meaning the old thing. Narrower than what was removed. No `prefix` filter: it built `k LIKE '<prefix>%'` with no escaping, and the keys are base64url, an alphabet containing `_`, a single-character LIKE wildcard, so roughly a third of prefixes matched rows from other windows. No `sort`, because `id ASC` is the only order worth serving - it is the primary key, so paging walks an index that already exists. No `/local`, which has no backing store on `main` any more. The response carries `id`, `k` and four decoded fields; the encoded value, property map, timestamp, direction and type are dropped, and `v` is the largest column of the lot. The request shape stays compatible with 0.4.x, which still serves the old endpoint, so one client reads both. Blocking JDBC work goes to `boundedElastic`, which the removed version did not do. Tested against a running server as well as in unit tests: create a service, delete it, and the row is still there with `active: false`, which is the whole premise. Co-Authored-By: Claude Opus 5 (1M context) <[email protected]>
em3s
added a commit
that referenced
this pull request
Aug 11, 2026
#418 removed `MetastoreInspector` and its dump endpoints as dead code, which they were. Something calls them now: `jdbc-metastore remaining` (#487) measures how much room each metadata scan window has left, and this is the only view of the rows such a scan actually reads. A `DELETE` rewrites its row with `Active.INACTIVE` instead of removing it, and `scanStorage` applies its `LIMIT` before anything filters on active, so every path above this one hides exactly what needs measuring. Scaffolding for the move to EdgeIndex, so it is named for the store it reads - `JdbcMetastoreInspector`, not a name claiming the general concept - and goes when that store does. Narrower than what was removed. No `prefix`: it built `k LIKE '<prefix>%'` unescaped over base64url keys, whose `_` is a LIKE wildcard. No `sort`: `id ASC` is the primary key, so paging walks an index that already exists. No `/local`: no backing store for it on `main`. The row is `id`, `k` and four decoded fields. The request shape still matches 0.4.x, so one client reads both. Blocking JDBC work goes to `boundedElastic`, which the removed version did not do. Co-Authored-By: Claude Opus 5 (1M context) <[email protected]>
em3s
added a commit
that referenced
this pull request
Aug 11, 2026
#418 removed `MetastoreInspector` and its dump endpoints as dead code, which they were. Something calls them now: `jdbc-metastore remaining` (#487) measures how much room each metadata scan window has left, and this is the only view of the rows such a scan actually reads. A `DELETE` rewrites its row with `Active.INACTIVE` instead of removing it, and `scanStorage` applies its `LIMIT` before anything filters on active, so every path above this one hides exactly what needs measuring. Scaffolding for the move to EdgeIndex, so it is named for the store it reads - `JdbcMetastoreInspector`, not a name claiming the general concept - and goes when that store does. Narrower than what was removed. No `prefix`: it built `k LIKE '<prefix>%'` unescaped over base64url keys, whose `_` is a LIKE wildcard. No `sort`: `id ASC` is the primary key, so paging walks an index that already exists. No `/local`: no backing store for it on `main`. The row is `id`, `k` and four decoded fields. The request shape still matches 0.4.x, so one client reads both. Blocking JDBC work goes to `boundedElastic`, which the removed version did not do. Co-Authored-By: Claude Opus 5 (1M context) <[email protected]>
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
Remove
MetastoreInspectorandMetastoreController, which only powered the debug/graph/v2/metastore/{global,local}dump endpoints. Nothing else consumes them.First of a 3-PR stack that reworks the local metastore backend:
ByteArrayStore-backed Hash/Indexed labels.ByteArrayStore.Changes
MetastoreInspectorandMetastoreController.metastoreInspector/localMetastoreInspectorbeans inGraphConfigurationand theGraph.metastoreInspectorproperty./graph/v2/metastore/{global,local}entries from the read-only endpoint allowlist test.dumpMetastoreassertion fromInitialSpec.How to Test
./gradlew buildReadOnlyRequestFilterTeststill passes its endpoint-exhaustiveness check with the two entries removed.AI Assistance