idea: XTDB's user-facing consistency and temporal guarantees should be published as an Allium spec
I maintainer di solito rispondono entro 1 giorno
Nessuno ha ancora preso questa issue.
Valutazione
- Difficoltà
- 5/5
- Tempo stimato
- Più di una settimana
- Idoneità per principianti
- 25/100
Direzione di ricerca
Start by reading about/txs-in-xtdb.md, about/dbs-in-xtdb.md, and about/time-in-xtdb.md, then compare their user-facing guarantees with dev/doc/db.allium, dev/doc/tx.allium, and allium/live-index.allium. The issue leaves the first slice and which distilled behaviours become promises for maintainers to decide. Done means a user-facing spec is checked in, its propagated tests run in CI, and the docs pages link to it.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
XTDB's user-facing consistency, transactional and temporal guarantees are stated only partially, in prose docs and inside internal implementation specs; a user-facing Allium spec, distilled from the code and published, would state them precisely and checkably.
-
Users, and agents answering on their behalf, evaluate a database by what it guarantees.
Today's statements are prose in the docs, so a reader can't tell exactly what they may rely on, and an agent has nothing precise to cite. -
idea: a spec with tests derived from it stays true where prose drifts.
Allium'sdistillextracts a spec from a codebase, andpropagategenerates tests from one. -
Opportunistic — nothing downstream waits on it.
Problem
A reader can't tell precisely which behaviours they may rely on.
Current state
-
The transactional guarantees are prose in two docs pages.
about/txs-in-xtdb.mdsays writes are serialized through a totally-ordered durable log, that DML transactions are atomic and non-interactive, and that they're therefore serializable;about/dbs-in-xtdb.mdsays serializability holds within a database but not between databases.
Neither is stated in a form that can be checked against the implementation. -
The temporal and read semantics are described by example, not specified.
about/txs-in-xtdb.mdexplains a read-only transaction's stable basis;about/time-in-xtdb.mdexplains valid and system time.
Not stated precisely anywhere: what the await token promises for read-your-writes;FOR VALID_TIMEandFOR SYSTEM_TIMEbehaviour under corrections, deletes and erasure; what one basis means across databases joined withATTACH DATABASE. -
The Allium specs that already exist specify the implementation, for maintainers.
dev/doc/db.allium,dev/doc/tx.allium,allium/live-index.alliumand others carry some user-visible guarantees —db.allium'sExecutionReadsOneSnapshot, for one — interleaved with internal mechanism, so a user can't read the contract off them.
Gaps in the user-visible semantics surface as bugs instead, e.g. #6232, a handed-on await token letting its receiver read behind what its sender saw. -
Behaviour and guarantee aren't separated.
Anything a user observes beyond those pages reads exactly like a commitment, so a user can build on an incidental behaviour.
Probably wants: the spec checked into the repo, its propagated tests running in CI, and the docs pages linking it — not yet designed.
Out of scope
-
Not a spec of the implementation.
It states the observable contract; how the indexer, compactor or log achieve it stays in the existing internal specs, so this one survives their redesign. -
Not a Jepsen-style test campaign.
Tests propagated from the spec check XTDB against it; adversarial fault-injection testing is separate work.
Open questions
-
Q1 Which distilled behaviours do we promise?
distillreports what the code does; publishing makes it a contract, so each behaviour needs a keep-as-guarantee or leave-unspecified call from the maintainers. -
Q2 Is the first slice the transactional guarantees or the temporal ones?
Transactional ones already have prose to check the spec against; temporal ones have the least written down.
- Lingua principale
- Clojure
- Stelle
- 3.1k
- Fork
- 193
- Merge medio
- 1g 8h
- PR unite (30g)
- 73
Preparare l'ambiente
Questo progetto non fornisce container di sviluppo, Dockerfile né guida per i contributori, quindi l'ambiente è a tuo carico: parti dal suo README e consulta la nostra guida al primo contributo per i passaggi generali.
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di xtdb/xtdb
-
unshaved-yak
Difficoltà 2/5 1-3 ore Idoneità per principianti 82/100
I maintainer di solito rispondono entro 1 giorno
-
sql unshaved-yak
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
I maintainer di solito rispondono entro 1 giorno
-
flaky
Difficoltà 2/5 1-3 ore Idoneità per principianti 66/100
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 84/100
I maintainer di solito rispondono entro 1 giorno
-
metrics
Difficoltà 2/5 1-3 ore Idoneità per principianti 74/100
I maintainer di solito rispondono entro 1 giorno
Issue simili
-
.Needs Triage .Team/UXWest Misc/Accessibility Priority:P3 Type:New Feature
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
metabase/metabase#88153 · 1 commento ·
I maintainer di solito rispondono entro 1 giorno
-
needs triage
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 72/100
editor-code-assistant/eca#717 ·
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 88/100
nasa/Common-Metadata-Repository#2544 ·
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 76/100