Repository navigation
Back datastore HASH labels with an IndexedLabel on the V3 path - #459
Merged
Merged
Conversation
1 task done
A HASH label on datastore storage materialized to DatastoreHashLabel, which extends HBaseHashLabel directly and therefore sits outside the HBaseIndexedLabel family that V2BackedEngine.getTableBinding requires. Every edge mutation on such a table failed on the V3 path with "not indexed or not supported for edge mutation". HBase HASH labels already avoid this via HBaseHashOnlyIndexedLabel (PR #296); datastore was never given the equivalent wrapper. Add DatastoreHashOnlyIndexedLabel, the datastore mirror of HBaseHashOnlyIndexedLabel: an HBaseIndexedLabel with no indices whose scan/cache throw UnsupportedOperationException. With no indices the indexed mutation path writes only the base hash rows, so the on-disk format is identical to a plain hash label and existing tables need no data migration. Route the HASH + DatastoreStorage branch to it and drop the now-unused DatastoreHashLabel. Co-Authored-By: Claude Opus 4.8 (1M context) <[email protected]>
em3s
force-pushed
the
fix/datastore-hash-indexed-backed
branch
from
July 24, 2026 03:27
786842d to
e34786f
Compare
Contributor
Author
|
Optimistic |
em3s
added a commit
that referenced
this pull request
Jul 24, 2026
(cherry picked from commit edb93be)
em3s
added a commit
that referenced
this pull request
Jul 24, 2026
1 task done
em3s
added a commit
that referenced
this pull request
Jul 24, 2026
Mutate/query now go through MutationService/QueryService — the path the original incident hit — instead of calling getTableBinding directly and using the V2 graph.mutate. Add a legacy-data case: rows written through an HBaseHashLabel writer (the removed DatastoreHashLabel shape) stay readable through the V3 API, and V3 writes coexist on the same table, backing the no-migration claim of #459. Co-Authored-By: Claude Fable 5 <[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
A HASH label on datastore storage can't be mutated on the V3 path. Every edge mutation fails with
This Label (<db>.<table>, class ...DatastoreHashLabel) is not indexed or not supported for edge mutation.V2BackedEngine.getTableBindingonly accepts labels in theHBaseIndexedLabelfamily. HBase HASH labels clear that gate throughHBaseHashOnlyIndexedLabel(#296), but the datastore branch ofLabelEntity.materializeproducedDatastoreHashLabel, which extendsHBaseHashLabeldirectly and sits outside that family. The label materializes and passes DDL, then fails only at mutation time with a400. This reproduces identically onv0.4.6andmain— the datastore HASH path was never wired through the V3 table binding.The fix adds
DatastoreHashOnlyIndexedLabel, the datastore mirror ofHBaseHashOnlyIndexedLabel: anHBaseIndexedLabelwith no indices whosescan/cachethrow. With no indices the indexed mutation path writes only the base hash rows, so the on-disk format stays identical to a plain hash label and existing datastore HASH tables keep working with no data migration.A backport to
0.4.xfollows in a separate PR.Changes
DatastoreHashOnlyIndexedLabeland routeHASH + DatastoreStorageto it inLabelEntity.materializeDatastoreHashLabelDatastoreHashLabelSpeccovering materialization type,getTableBinding, edge mutation, andgetHow to Test
Full
:engine:testpasses locally.AI Assistance