Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .github/scripts/embedded-cmd-test-shards.txt
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,7 @@
100 20 TestEmbeddedInitRoleRoutingRetainedFork
100 20 TestEmbeddedMigrateSchema_IdentityMismatchRefusesBeforeApplying

100 21 TestEmbeddedArrivalSeqOnEveryJSONRead
100 21 TestEmbeddedMaxRowsReady
100 21 TestEmbeddedMigratePersonal_movesIssues

Expand Down
7 changes: 7 additions & 0 deletions .github/scripts/embedded-storage-test-shards.txt
Original file line number Diff line number Diff line change
Expand Up @@ -140,6 +140,7 @@

40 3 TestActiveDatabaseSizeFailsForMissingEmbeddedDatabase
40 3 TestActiveDatabaseSizeScopesToActiveEmbeddedDatabase
40 3 TestArrivalSeq_EmbeddedJournalCollisionMovesTheStamp
40 3 TestBuildDSN_NoDatabase
40 3 TestBuildDSN_SpacesInPath
40 3 TestBuildDSN_WithDatabase
Expand Down Expand Up @@ -209,6 +210,7 @@
40 7 TestLoseVersionLeavesTheEpochTablesCommitted
40 7 TestMergeAndSettleWithStrategy_ResolvesDeclinedConflict

40 8 TestArrivalSeq_EmbeddedCreateLeavesTheStampOnTheCallersIssue
40 8 TestDeleterContract
40 8 TestEmbeddedDependencyEditorRoutesWispSourcedRemovalToTheWispPlane
40 8 TestEmbeddedMergeAndSettleDirtyWorkingSetSurvivesRefusedMerge
Expand Down Expand Up @@ -274,6 +276,7 @@
40 13 TestEmbeddedRelationsDirectionSelectsTheInverseGraph
40 13 TestGraphWalkPlansHonorJoinHints

40 14 TestArrivalSeq_EmbeddedReplayedCounterSeedClearsTheStamps
40 14 TestBatchCreatorContract
40 14 TestBlockingAnnotatorContract
40 14 TestCountsIncludeWispDependencies
Expand All @@ -286,6 +289,7 @@
40 14 TestHeartbeatIssueCommitsARefusalOnlyWhenItReadTheIssueEmbedded
40 14 TestHistory_NullTextColumns

40 15 TestArrivalSeq_EmbeddedSequentialCreatesStampInCommitOrder
40 15 TestCreateIssuesRejectStaleUpserts
40 15 TestDecryptPassword_ShortCiphertextClassifiesAsKeyMismatch
40 15 TestEmbeddedGetMergeBlockersOnAQuietStore
Expand Down Expand Up @@ -406,6 +410,7 @@
40 24 TestIgnoredCursorHealResumeRespectsOperatorOverride
40 24 TestLargeBatchApplyStatementCountsClassic40_Embedded
40 24 TestReopenIssue
40 24 TestUniqueIndexAllowsManyUnstampedWisps

40 25 TestBatchGetterContract
40 25 TestDatabases
Expand All @@ -421,6 +426,7 @@
40 25 TestReadyWorkPageTotal
40 25 TestWithPeerAuth_RestoresAbsentEnv

40 26 TestArrivalSeq_EmbeddedConcurrentWritersAreUnique
40 26 TestEmbeddedIssueOperationsCreateClosedDerivesTheClosedStamp
40 26 TestEmbeddedMigration0058CleansOrphanedAndInvalidWispDependenciesRowsBeforeAddingConstraints
40 26 TestEmbeddedOpenForReadOnlyCommand_LenientGate
Expand Down Expand Up @@ -603,6 +609,7 @@
40 39 TestReclaimRefusesForeignReplicaLease
40 39 TestWorkspaceConfigContract

40 40 TestArrivalSeq_EmbeddedHealRaisesTheCounterPastTheStamps
40 40 TestCountsWithMissingWispPlaneTables
40 40 TestEmbeddedBatchCloserDoesNotMutateTheCallerRequest
40 40 TestEmbeddedBlockedRecheckSettlesWhatTheWriteRecorded
Expand Down
1 change: 1 addition & 0 deletions .github/scripts/proxied-cmd-test-shards.txt
Original file line number Diff line number Diff line change
Expand Up @@ -152,6 +152,7 @@
34 16 TestProxiedServerServeCount
34 16 TestProxiedServerServeCreate
34 16 TestProxiedServerUpdateHooks
34 16 TestServerModeReadRefusesASchemaItsReadsCannotQuery

34 17 TestProxiedServerDep
34 17 TestProxiedServerMultiStatementSQL
Expand Down
28 changes: 28 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,34 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

### Added

- **`arrival_seq`, a commit-ordered create sequence on wisp-plane rows.**
While a workspace journals, every `ephemeral` or `no_history` bead it creates
is stamped with the `seq` of its own `create` journal record, in the same
transaction, so sorting rows by `arrival_seq` recovers the order their
creates committed in even after the journal is pruned (a row created with
the journal off, or moved onto the wisp plane, is stamped by the first
`create` record later journaled for it, a re-import or a rename, and sorts by
that commit). Unique, not reused unless the seq counter is lost after the
journal is pruned, never changed while the row stays on the wisp plane, never
settable by a caller, and never written by `bd export`. Durable beads carry
none. Schema migration 0073 adds the column to both planes and the
clone-local unique index to wisps (ignored migration 0029 carries both to
fresh clones, and raises the seq counter past every surviving stamp whenever
a lost counter is re-created); the seq-counter heal now also clears
`MAX(arrival_seq)`. `--json` output and every issue-shaped HTTP schema carry
the optional member, announced over HTTP by the new build-level capability
`issues.arrivalSeq`.
See [Arrival order on the row](docs/reference/events-journal.md#arrival-order-on-the-row).
**Upgrading:** every issue read now selects `arrival_seq`, so this bd reads
nothing from a database still at schema v72 until it is migrated
(`bd migrate schema`, once per database, after its clients are upgraded).
Until then a read that goes on without migrating (a read-only command on a
server-mode or proxied-server workspace, or on an embedded one whose
migration is refused, and a routed or foreign read) refuses the database at
open with the schema-behind error, instead of failing every query on the
unknown column; through a gateway server the refusal asks the server
administrator to upgrade the database. A database behind the binary that
still has every column the reads select keeps serving them as before.
- `bd versions <id>` lists the versions recorded for a bead, and
`versioned-history.enabled` turns recording on. While it is on, every
accepted change to a bead created while it is on, or that enters the issues
Expand Down
1 change: 1 addition & 0 deletions backend/conformance/BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@ go_library(
"importer_contract.go",
"issue_operations_contract.go",
"issue_operations_staging.go",
"journal_arrival_contract.go",
"journal_contract.go",
"lease_reclaimer_contract.go",
"lifecycle_close_reopen_contract.go",
Expand Down
Loading
Loading