Repository navigation
DO NOT MERGE without coordinator GO: 3.x.x: version 3.1.0-rc.1 and its release notes - #774
Conversation
VERSION, the workspace version and both lockfiles move to 3.1.0-rc.1. The fuzz lockfile also picks up hyper and hyper-util, which #769 added to the server without refreshing it. The 3.0.0 and development-line notes point at the new candidate; its own notes follow in this pull request. Co-Authored-By: Claude Opus 5.5 <[email protected]>
The notes cover everything since v3.0.0-rc.6: #770's import-audits fix (#765) and #760's idle-connection bound (#759), which would have shipped as rc.7, and the 3.1 dual writer (#766, #768, #767, #769, #763), off by default. They describe the new settings, migrations 027, 028 and 031 (029 and 030 reserved), the upgrade from rc.6 with the migrate run while rc.6 serves, the rollbacks, and the dual writer's known limits. The migration guide's import-audits paragraph names this candidate in place of the skipped rc.7. Co-Authored-By: Claude Opus 5.5 <[email protected]>
Codex Review SummaryThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Co-Authored-By: Claude Opus 5.5 <[email protected]>
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 2df1b1082e
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
| - **From the dual writer to one writer:** stay on this candidate. Start the | ||
| single writer with `PRISM_DUAL_WRITER` off and | ||
| `PRISM_DUAL_WRITER_DOWNGRADE=1`; without it the start refuses a database | ||
| whose carry-owner journal holds rows, because a second payer of carried | ||
| balances would pay them twice. Only the deliberate rollback sets it. The |
There was a problem hiding this comment.
Stop the peer before bypassing the single-writer guard
If this rollback is followed while the other dual-writer frontend is still running, PRISM_DUAL_WRITER_DOWNGRADE=1 merely bypasses refuse_single_writer_on_dual_ledger; it does not fence or stop the carry owner. The new single writer can therefore pay carried balances while the peer continues paying them, exactly the double-payment condition the guard normally prevents. Require draining traffic, synchronizing the peer tail, and stopping both dual-writer frontends before starting the selected database in single-writer mode.
Useful? React with 👍 / 👎.
There was a problem hiding this comment.
Fixed in 67b3a09. The rollback to one writer is now ordered. Carry ownership moves to the kept node first, and the transfer's chain scan proves every pool block is landed there. The retired node is drained: no unfinished candidate, no zero-fee fanout it is still sponsoring. Then every frontend on its database is stopped and disabled. The kept node's peer sync pulls the retired node's tail, and only then does every kept frontend restart as a single writer with PRISM_DUAL_WRITER_DOWNGRADE=1. The notes now say the flag fences nothing.
| database stays personalised, so declare the peer's tail lost | ||
| (`qbit_prism_node_lineage.peer_tail_lost_at`) or `share-archive plan` | ||
| waits for a peer that no longer syncs | ||
| ([the peer sync](https://github.com/Qbit-Org/qbit-mining-bootstrap/blob/v3.1.0-rc.1/docs/prism-ledger-ops.md#the-peer-sync)). |
There was a problem hiding this comment.
Preserve the peer tail before declaring it lost
When the retired peer has accepted rows that have not yet synced, declaring peer_tail_lost_at lets archive planning proceed as though those rows will never arrive. If that peer is later restored or dual-writer mode is resumed, its rows can target a partition that has already left and peer sync then stops until the partition is restored; accepted history may also be omitted from the chosen single-writer database. The linked operations guide explicitly says never to make this declaration for a peer that may return, so the rollback must first verify complete synchronization and limit the declaration to permanently abandoned peer state.
Useful? React with 👍 / 👎.
There was a problem hiding this comment.
Fixed in 67b3a09. peer_tail_lost_at is now step 5. It comes after the kept node has pulled the retired node's tail: peer reachable, no refusal, failures not rising, lag_rows 0 on all four streams, and an empty conflicts table, all checked after the stop. It is declared only for a peer that never comes back with its own database. A return to the dual writer rebuilds the retired node from the kept one, and then clears the flag on the kept node.
…he peer first Codex on #774: DOWNGRADE fences nothing, so the peer must be stopped, and its tail pulled, before the single-writer start; declare the tail lost only for a peer that never returns with its own database. Co-Authored-By: Claude Opus 5.5 <[email protected]>
|
CI on 67b3a09: one infrastructure failure, unrelated to the change.
A rerun of the failed jobs ( |
Version 3.1.0-rc.1 and its release notes, the first 3.1.0 candidate (3.0.0-rc.7 was skipped; #772 stays unmerged).
VERSION,[workspace.package].version,Cargo.lockand the fuzzCargo.lockmove to 3.1.0-rc.1. The fuzz lockfile also picks uphyperandhyper-util, which 3.1 dual-writer (4/5): dual-writer readiness and Stratum gating #769 added to the server without refreshing it.doc/release-notes-3.1.0-rc.1.md: everything since v3.0.0-rc.6.migraterun while rc.6 serves.PRISM_DUAL_WRITER_DOWNGRADE) and to rc.6.doc/release-notes-3.0.0.mdand the development-line notes point at the new candidate.docs/prism-rust-migration.md's import-audits paragraph names 3.1.0-rc.1 where 3.x.x: version 3.0.0-rc.7 and its release notes (#557) #772 named rc.7.The links in the notes are absolute at
blob/v3.1.0-rc.1/, so they resolve on the release page once the tag exists.Before pushing, a read-only agent checked every claim (setting names, defaults and ranges, migration behaviour, rc.6's behaviour at
81c592c3, link targets and anchors) against the code, and the findings were fixed. A local/code-review mediumwas run as well. #773 (rc.6 serving through 027, 028 and 031, tests only) merges first; once it does, 3.x.x is merged forward here and #773 is added to the notes. The labelrun-dual-writer-e2eruns the full dual-writer matrix on this PR.🤖 Generated with Claude Code