Repository navigation
3.1 pre-migrate tests: no race in R1's mid-build check, and cancellations counted from the migrate's start - #775
Merged
Conversation
…ions from the migrate's start - R1 waited for 031's CREATE INDEX CONCURRENTLY in pg_stat_activity, which shows before the statement has committed p0's leaf to the catalog, so the mid-build check could read no leaf. It waits for the leaf to exist, invalid, with the build still running. - The no-cancellation checks read the frontends' whole logs, so statement timeouts the pair met on its own while starting, before the migrate, failed the scenario. They count from the migrate's start. - The measurement's seed leads each share id with the row's number, so the unique index on it grows at its right edge. Random ids made every batch past the cache a random write per row, hours at 15M rows, and 031 never reads that index. Its shared_buffers is a setting (PRISM_PREMIGRATE_SHARED_BUFFERS, default 2GB; 128MB in the lanes). 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]>
… the time of an uncoloured log line The seed's writes are flushed with a CHECKPOINT before anything is measured, so a checkpoint still syncing them cannot stall the migrate's and the appender's commits on fsync. log_lines_since stripped a colour code's remainder from the text before the first escape too, so a line logged without colour lost its leading time and was kept whatever its time. Only text after an escape is stripped now. Co-Authored-By: Claude Opus 5.5 <[email protected]>
1 of 5 tasks
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Follow-up to #773. Tests only:
crates/qbit-prism-dual-sim.Two R1 flake risks. CI on #773 didn't hit either of these, but a local run against rc.6 did.
CREATE INDEX CONCURRENTLYto appear inpg_stat_activity. The statement appears there before it has committed p0's leaf index to the catalog, so the mid-build check could find no leaf. R1 now waits until the leaf exists, invalid, with the build still running.The by-hand measurement's seed. Each share id now leads with the row's number, so the unique index on
share_idgrows at its right edge. With random ids, every 1M-row batch past the cache cost a random write per row. That came to over two hours for 15M rows, and 031 never reads that index.shared_buffersis now a setting:PRISM_PREMIGRATE_SHARED_BUFFERS, default 2GB for the measurement, 128MB for the lane's p0 test.The seed is checkpointed before measuring. A checkpoint still syncing the seed's writes stalled every commit on fsync, the migrate's and the appender's: the host's disk, not the migrate. The seed now ends with a
CHECKPOINT, before the statement log's offset is taken.Uncoloured log lines keep their time. The start-of-migrate filter stripped a colour code's remainder from the text before the first escape too, so a line logged without colour lost its leading time and was always kept. Only text after an escape is stripped now.
Branch updated with 3.x.x (v3.1.0) by a merge commit; the PR's own diff is unchanged by it.
Local results (rc.6 binary): after the merge and these changes, both R1 tests passed again (pair scenario and p0 test).
Earlier: R1 passed 2 of 2 runs. Clippy and the dual-sim unit tests pass.
🤖 Generated with Claude Code
Need help on this PR? Tag
@codesmith-botwith what you need.