Skip to content

Stabilize the LogService bootstrap recovery race test - #33684

Merged
XuPeng-SH merged 2 commits into
matrixorigin:mainfrom
XuPeng-SH:fix/logservice-bootstrap-recovery-race
Dec 2, 2026
Merged

XuPeng-SH merged 2 commits into
matrixorigin:mainfrom
XuPeng-SH:fix/logservice-bootstrap-recovery-race

Conversation

@XuPeng-SH

Copy link
Copy Markdown
Contributor

What type of PR is this?

  • API-change
  • BUG
  • Improvement
  • Documentation
  • Feature
  • Test and CI
  • Code Refactoring

Which issue(s) this PR fixes:

Related to #33008. This stabilizes the bootstrap recovery regression test introduced by #33010.

What this PR does / why we need it:

The disk-backed TestDynamicBootstrapRecoversLostRepliesWithTwoRaftVoters requires both surviving voters to answer quorum checks. The fixture inherited a 10 ms Raft tick, which makes the quorum check interval 100 ms. In the failing race run, ticks queued up and the elected leader lost quorum after 106 ms. The append then timed out. CI failure

Use a 100 ms Raft tick in this fixture, matching the adjacent disk-backed recovery tests. The test still shuts down the third voter before replaying both lost bootstrap replies, then proves that each survivor can write a record and read the peer's record. The write/read polling keeps its 9 s deadline.

Validation

  • The exact test passed 11 consecutive times under -race on two CPUs.
  • go vet and incremental SCA passed for pkg/logservice.
  • The full pkg/logservice race run passed, including the target test.

@qodo-code-review

Copy link
Copy Markdown

Qodo reviews are paused for this user.

Troubleshooting steps vary by plan Learn more →

On a Teams plan?
Reviews resume once this user has a paid seat and their Git account is linked in Qodo.
Link Git account →

Using GitHub Enterprise Server, GitLab Self-Managed, or Bitbucket Data Center?
These require an Enterprise plan - Contact us
Contact us →

@mergify mergify Bot added the kind/test-ci label Dec 2, 2026
@XuPeng-SH
XuPeng-SH merged commit 6302cd4 into matrixorigin:main Dec 2, 2026
3 of 5 checks passed
@XuPeng-SH
XuPeng-SH deleted the fix/logservice-bootstrap-recovery-race branch December 2, 2026 13:38
@matrix-meow matrix-meow added the size/XS Denotes a PR that changes [1, 9] lines label Dec 2, 2026
XuPeng-SH added a commit that referenced this pull request Dec 3, 2026
## What type of PR is this?

- [ ] API-change
- [ ] BUG
- [ ] Improvement
- [x] Documentation
- [ ] Feature
- [ ] Test and CI
- [ ] Code Refactoring

## Which issue(s) this PR fixes:

Related to #32278 and #33700.

## What this PR does / why we need it:

Use the same conditional upgrade reference in the Codex and Claude
development and review skills. Ordinary reviews skip release lookup,
cluster setup and upgrade reporting when the changed path has no
affected contract. Design review identifies the needed proof and
implementation review can reuse qualifying evidence.

- For a shared function ID or overload, compare the changed allocation
and binding against pinned releases and peer branches. Before landing,
refresh only comparisons whose registry inputs changed. A scoped
registry and binding check is sufficient for a fresh allocation that
preserves existing calls.
- Preserve the published catalog `(Version, VersionOffset)`, migration
order and effects. A required migration must reopen the predecessor's
data, reach readiness and preserve the affected system or existing
tenant operation. #33548 distinguishes a development-snapshot mismatch
from a released upgrade path.
- At a release cut, compare the predecessor's operations and maintenance
fixes toward the candidate, including features absent from the target
diff. A single PR checks its affected capability. A stateless operation
can use a released result or compatible client. For persisted
expressions, exercise old data and later writes. Examples include
#32924, #33558 and #33560.
- For a new durable format or a change to its selection, verify what the
existing setting and the explicit opt-in each write. #25272 introduces a
distinct disk layout. #32774 shows how existing byte and metadata checks
can close a buffer-only change.
- For restore, use the binding evidence actually available to the
loader. Check the restored definition on success and verify that an
unresolved binding leaves the definition and rows unchanged. #33036
documents a SQL-only archive where the same DDL can have two meanings.

All four skill entry points passed validation. Checked the routing
against CI scheduling (#33653), a test-only recovery fixture (#33684), a
CPU metrics dependency (#33635), same-binary batch transport (#33269),
and the actual #30833 ID collision. Reused the v4.2.9 catalog and
default-expression results from #33700 and inspected two
release-produced v1 manifests. The catalog reached READY before the old
default failed on clean main, and the unchanged restore control
reproduced its separate schema fingerprint rejection on both builds.

---------

Signed-off-by: XuPeng-SH <[email protected]>

This branch was previously deployed

1 inactive deployment
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

kind/test-ci size/XS Denotes a PR that changes [1, 9] lines

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants