Skip to content

feat(cli): indexes, slot members, write tags and table statistics (chunkdb/chunkdb#151) - #61

Merged
eventvoid merged 1 commit into
mainfrom
feat/server-catchup-3
Nov 30, 2026
Merged

eventvoid merged 1 commit into
mainfrom
feat/server-catchup-3

Conversation

@eventvoid

Copy link
Copy Markdown
Member

Part of chunkdb/chunkdb#151 ("Every statement has a typed helper in Go and JS and a command form in the CLI" and "Decoding of every reply shape").

The CLI prints typed GET BLOCKS WHERE rows and continuation cursors. It supports explicit scan permission and the boolean HELLO opt-in for larger rectangular queries, displays secondary index definitions in DESCRIBE and WATCH CATALOG, and checks index build progress in SHOW CONNECTIONS.

Slot members see their assigned partitions and generation. The CLI sends generation-qualified ACKs, drains late ACK replies, and refreshes projections and rejoins on the returned socket after rebalance. Tagged writes retain typed RETURNING output and chunk import validation. Shell transactions accept a binary BEGIN tag. The CLI rejects tag files above 256 bytes locally, and text feeds show tags in hex.

PROMOTE TABLE replies are checked for their new epoch and fork lineage. WAL archive statistics and seal time bounds are validated. The backup guide points to the server tool for offline revision and commit-time restores.

Wire fixtures cover full-width lookup pages, duplicate keys and trailing row fields, scan refusals, coalesced replies, routing and catalog events, member reassignment and late ACKs, binary tag limits, promotion outcomes, and table and archive counters. Integration coverage checks the rectangular continuation and projection syntax against chunkdb. GitHub CI runs these checks.

Binding a standalone lookup to its schema under the server's read lease requires a server protocol follow-up under chunkdb/chunkdb#147, then client validation under #151. The CLI uses DESCRIBE to decode current replies. The Go and JavaScript typed helpers and decoders are tracked in their respective client changes.

Decode typed block value pages, secondary index metadata and build progress. Support explicit scan permission and the boolean session option for rectangular queries.

Use server-assigned slot partitions, qualify acknowledgements with each watch generation and rejoin at rebalance. Support tagged writes and tagged shell transactions, and validate promotion lineage and WAL archive metrics.

Route indexes named if by their target table. Drain stale member ACK replies and refresh projections on the returned socket. Bound tag file reads locally and use the negotiated wire limit with a lookup-specific allowance for decoded rows. Reject duplicate page keys and accept trailing row fields.

Test valid rectangular continuations and bare-name projections against chunkdb. Document that standalone lookup replies are decoded using a separately fetched table schema.
@eventvoid
eventvoid merged commit 27cee81 into main Nov 30, 2026
5 checks passed
@eventvoid
eventvoid deleted the feat/server-catchup-3 branch November 30, 2026 01:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant