You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
catalog: add durable storage for cluster replica sizes
Add ClusterReplicaSize as a new durable catalog object type. This
lays the groundwork for making cluster replica sizes persistent and
user-definable via SQL DDL.
The new type follows the established pattern (NetworkPolicy, Cluster,
etc.):
- Proto Key/Value definitions in catalog-protos with Arbitrary derives
- DurableType impl converting between ReplicaAllocation and raw
proto-compatible fields (the Value stores raw u64/string fields
rather than ReplicaAllocation directly, since Numeric doesn't
implement Eq/Ord needed by TableTransaction)
- StateUpdateKind variant with collection type mapping
- Transaction CRUD methods (insert, remove, get)
- Snapshot field and persist read/write support
- Memory StateUpdateKind variant applied in pre-cluster ordering
- Debug trace support
- No-op v81→v82 catalog migration (existing catalogs have no
ClusterReplicaSize entries; builtins will be populated in a
follow-up commit)
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
0 commit comments