Repository navigation
fix(logservice): update dragonboat snapshot import fix - #24967
Closed
LeftHandCold wants to merge 1 commit into
Closed
LeftHandCold wants to merge 1 commit into
LeftHandCold wants to merge 1 commit into
Conversation
Qodo reviews are paused for this user.Troubleshooting steps vary by plan Learn more → On a Teams plan? Using GitHub Enterprise Server, GitLab Self-Managed, or Bitbucket Data Center? |
This was referenced Jun 15, 2026
mergify Bot
pushed a commit
that referenced
this pull request
Jun 17, 2026
This PR updates the MatrixOne `3.0-dev` branch to use the Dragonboat snapshot import metadata fix merged in: - matrixorigin/dragonboat@103d119 - matrixorigin/dragonboat#14 Main changes: - Update the `github.com/lni/dragonboat/v4` replacement to `github.com/matrixorigin/dragonboat/v4 v4.0.0-20260612094223-103d119addce`. - Add the corresponding `go.sum` entries for the updated Dragonboat module. Why this is needed: - The upstream fix prevents imported snapshots from synthesizing `Membership.ConfigChangeId` from the snapshot index. - HAKeeper uses Dragonboat membership `ConfigChangeId` as the LogService shard epoch. - Without this fix, an old imported membership can be reported with a large fake epoch and be treated as newer than the live membership view. - The upstream fix also preserves online imported snapshot membership consistently and rejects invalid target membership before restore. Validation: - `git diff --check` - `GOTELEMETRY=off go mod download github.com/lni/dragonboat/v4` - `GOTELEMETRY=off go list -m -json github.com/lni/dragonboat/v4` - `GOTELEMETRY=off GOCACHE=/private/tmp/mo-dragonboat-3dev-gocache go test github.com/lni/dragonboat/v4/tools github.com/lni/dragonboat/v4/internal/rsm github.com/lni/dragonboat/v4/internal/raft -run '^$' -count=0` Fixes logservice stale replica recovery with the previous MO-side stale truncation metadata cleanup plus the Dragonboat snapshot import metadata fix from #24967. This keeps truncation from processing stale local replica metadata/exported snapshots, and updates Dragonboat so imported snapshots no longer synthesize membership ConfigChangeId from snapshot index. Approved by: @XuPeng-SH, @volgariver6
XuPeng-SH
pushed a commit
that referenced
this pull request
Jun 18, 2026
## What type of PR is this? - [ ] API-change - [x] BUG - [ ] Improvement - [ ] Documentation - [ ] Feature - [ ] Test and CI - [ ] Code Refactoring ## Which issue(s) this PR fixes: issue #24966 ## What this PR does / why we need it: This PR updates the MatrixOne `3.0-dev` branch to use the Dragonboat snapshot import metadata fix merged in: - matrixorigin/dragonboat@103d119 - matrixorigin/dragonboat#14 Main changes: - Update the `github.com/lni/dragonboat/v4` replacement to `github.com/matrixorigin/dragonboat/v4 v4.0.0-20260612094223-103d119addce`. - Add the corresponding `go.sum` entries for the updated Dragonboat module. Why this is needed: - The upstream fix prevents imported snapshots from synthesizing `Membership.ConfigChangeId` from the snapshot index. - HAKeeper uses Dragonboat membership `ConfigChangeId` as the LogService shard epoch. - Without this fix, an old imported membership can be reported with a large fake epoch and be treated as newer than the live membership view. - The upstream fix also preserves online imported snapshot membership consistently and rejects invalid target membership before restore. Validation: - `git diff --check` - `GOTELEMETRY=off go mod download github.com/lni/dragonboat/v4` - `GOTELEMETRY=off go list -m -json github.com/lni/dragonboat/v4` - `GOTELEMETRY=off GOCACHE=/private/tmp/mo-dragonboat-3dev-gocache go test github.com/lni/dragonboat/v4/tools github.com/lni/dragonboat/v4/internal/rsm github.com/lni/dragonboat/v4/internal/raft -run '^$' -count=0` Fixes logservice stale replica recovery with the previous MO-side stale truncation metadata cleanup plus the Dragonboat snapshot import metadata fix from #24967. This keeps truncation from processing stale local replica metadata/exported snapshots, and updates Dragonboat so imported snapshots no longer synthesize membership ConfigChangeId from snapshot index.
LeftHandCold
added a commit
to LeftHandCold/matrixone
that referenced
this pull request
Jun 18, 2026
## What type of PR is this? - [ ] API-change - [x] BUG - [ ] Improvement - [ ] Documentation - [ ] Feature - [ ] Test and CI - [ ] Code Refactoring ## Which issue(s) this PR fixes: issue matrixorigin#24966 ## What this PR does / why we need it: This PR updates the MatrixOne `3.0-dev` branch to use the Dragonboat snapshot import metadata fix merged in: - matrixorigin/dragonboat@103d119 - matrixorigin/dragonboat#14 Main changes: - Update the `github.com/lni/dragonboat/v4` replacement to `github.com/matrixorigin/dragonboat/v4 v4.0.0-20260612094223-103d119addce`. - Add the corresponding `go.sum` entries for the updated Dragonboat module. Why this is needed: - The upstream fix prevents imported snapshots from synthesizing `Membership.ConfigChangeId` from the snapshot index. - HAKeeper uses Dragonboat membership `ConfigChangeId` as the LogService shard epoch. - Without this fix, an old imported membership can be reported with a large fake epoch and be treated as newer than the live membership view. - The upstream fix also preserves online imported snapshot membership consistently and rejects invalid target membership before restore. Validation: - `git diff --check` - `GOTELEMETRY=off go mod download github.com/lni/dragonboat/v4` - `GOTELEMETRY=off go list -m -json github.com/lni/dragonboat/v4` - `GOTELEMETRY=off GOCACHE=/private/tmp/mo-dragonboat-3dev-gocache go test github.com/lni/dragonboat/v4/tools github.com/lni/dragonboat/v4/internal/rsm github.com/lni/dragonboat/v4/internal/raft -run '^$' -count=0` Fixes logservice stale replica recovery with the previous MO-side stale truncation metadata cleanup plus the Dragonboat snapshot import metadata fix from matrixorigin#24967. This keeps truncation from processing stale local replica metadata/exported snapshots, and updates Dragonboat so imported snapshots no longer synthesize membership ConfigChangeId from snapshot index.
1 of 7 tasks
XuPeng-SH
added a commit
that referenced
this pull request
Jun 19, 2026
## What type of PR is this? - [ ] API-change - [x] BUG - [ ] Improvement - [ ] Documentation - [ ] Feature - [ ] Test and CI - [ ] Code Refactoring ## Which issue(s) this PR fixes: issue #24966 ## What this PR does / why we need it: Why this is needed: - The upstream fix prevents imported snapshots from synthesizing `Membership.ConfigChangeId` from the snapshot index. - HAKeeper uses Dragonboat membership `ConfigChangeId` as the LogService shard epoch. - Without this fix, an old imported membership can be reported with a large fake epoch and be treated as newer than the live membership view. - The upstream fix also preserves online imported snapshot membership consistently and rejects invalid target membership before restore. Validation: - `git diff --check` - `GOTELEMETRY=off go mod download github.com/lni/dragonboat/v4` - `GOTELEMETRY=off go list -m -json github.com/lni/dragonboat/v4` - `GOTELEMETRY=off GOCACHE=/private/tmp/mo-dragonboat-3dev-gocache go test github.com/lni/dragonboat/v4/tools github.com/lni/dragonboat/v4/internal/rsm github.com/lni/dragonboat/v4/internal/raft -run '^$' -count=0` Fixes logservice stale replica recovery with the previous MO-side stale truncation metadata cleanup plus the Dragonboat snapshot import metadata fix from #24967. This keeps truncation from processing stale local replica metadata/exported snapshots, and updates Dragonboat so imported snapshots no longer synthesize membership ConfigChangeId from snapshot index. Co-authored-by: XuPeng-SH <[email protected]>
VioletQwQ-0
pushed a commit
to VioletQwQ-0/matrixone
that referenced
this pull request
Sep 17, 2026
## What type of PR is this? - [ ] API-change - [x] BUG - [ ] Improvement - [ ] Documentation - [ ] Feature - [ ] Test and CI - [ ] Code Refactoring ## Which issue(s) this PR fixes: issue matrixorigin#24966 ## What this PR does / why we need it: This PR updates the MatrixOne `3.0-dev` branch to use the Dragonboat snapshot import metadata fix merged in: - matrixorigin/dragonboat@103d119 - matrixorigin/dragonboat#14 Main changes: - Update the `github.com/lni/dragonboat/v4` replacement to `github.com/matrixorigin/dragonboat/v4 v4.0.0-20260612094223-103d119addce`. - Add the corresponding `go.sum` entries for the updated Dragonboat module. Why this is needed: - The upstream fix prevents imported snapshots from synthesizing `Membership.ConfigChangeId` from the snapshot index. - HAKeeper uses Dragonboat membership `ConfigChangeId` as the LogService shard epoch. - Without this fix, an old imported membership can be reported with a large fake epoch and be treated as newer than the live membership view. - The upstream fix also preserves online imported snapshot membership consistently and rejects invalid target membership before restore. Validation: - `git diff --check` - `GOTELEMETRY=off go mod download github.com/lni/dragonboat/v4` - `GOTELEMETRY=off go list -m -json github.com/lni/dragonboat/v4` - `GOTELEMETRY=off GOCACHE=/private/tmp/mo-dragonboat-3dev-gocache go test github.com/lni/dragonboat/v4/tools github.com/lni/dragonboat/v4/internal/rsm github.com/lni/dragonboat/v4/internal/raft -run '^$' -count=0` Fixes logservice stale replica recovery with the previous MO-side stale truncation metadata cleanup plus the Dragonboat snapshot import metadata fix from matrixorigin#24967. This keeps truncation from processing stale local replica metadata/exported snapshots, and updates Dragonboat so imported snapshots no longer synthesize membership ConfigChangeId from snapshot index.
VioletQwQ-0
pushed a commit
to VioletQwQ-0/matrixone
that referenced
this pull request
Sep 17, 2026
## What type of PR is this? - [ ] API-change - [x] BUG - [ ] Improvement - [ ] Documentation - [ ] Feature - [ ] Test and CI - [ ] Code Refactoring ## Which issue(s) this PR fixes: issue matrixorigin#24966 ## What this PR does / why we need it: This PR updates the MatrixOne `3.0-dev` branch to use the Dragonboat snapshot import metadata fix merged in: - matrixorigin/dragonboat@103d119 - matrixorigin/dragonboat#14 Main changes: - Update the `github.com/lni/dragonboat/v4` replacement to `github.com/matrixorigin/dragonboat/v4 v4.0.0-20260612094223-103d119addce`. - Add the corresponding `go.sum` entries for the updated Dragonboat module. Why this is needed: - The upstream fix prevents imported snapshots from synthesizing `Membership.ConfigChangeId` from the snapshot index. - HAKeeper uses Dragonboat membership `ConfigChangeId` as the LogService shard epoch. - Without this fix, an old imported membership can be reported with a large fake epoch and be treated as newer than the live membership view. - The upstream fix also preserves online imported snapshot membership consistently and rejects invalid target membership before restore. Validation: - `git diff --check` - `GOTELEMETRY=off go mod download github.com/lni/dragonboat/v4` - `GOTELEMETRY=off go list -m -json github.com/lni/dragonboat/v4` - `GOTELEMETRY=off GOCACHE=/private/tmp/mo-dragonboat-3dev-gocache go test github.com/lni/dragonboat/v4/tools github.com/lni/dragonboat/v4/internal/rsm github.com/lni/dragonboat/v4/internal/raft -run '^$' -count=0` Fixes logservice stale replica recovery with the previous MO-side stale truncation metadata cleanup plus the Dragonboat snapshot import metadata fix from matrixorigin#24967. This keeps truncation from processing stale local replica metadata/exported snapshots, and updates Dragonboat so imported snapshots no longer synthesize membership ConfigChangeId from snapshot index.
VioletQwQ-0
pushed a commit
to VioletQwQ-0/matrixone
that referenced
this pull request
Sep 17, 2026
## What type of PR is this? - [ ] API-change - [x] BUG - [ ] Improvement - [ ] Documentation - [ ] Feature - [ ] Test and CI - [ ] Code Refactoring ## Which issue(s) this PR fixes: issue matrixorigin#24966 ## What this PR does / why we need it: This PR updates the MatrixOne `3.0-dev` branch to use the Dragonboat snapshot import metadata fix merged in: - matrixorigin/dragonboat@103d119 - matrixorigin/dragonboat#14 Main changes: - Update the `github.com/lni/dragonboat/v4` replacement to `github.com/matrixorigin/dragonboat/v4 v4.0.0-20260612094223-103d119addce`. - Add the corresponding `go.sum` entries for the updated Dragonboat module. Why this is needed: - The upstream fix prevents imported snapshots from synthesizing `Membership.ConfigChangeId` from the snapshot index. - HAKeeper uses Dragonboat membership `ConfigChangeId` as the LogService shard epoch. - Without this fix, an old imported membership can be reported with a large fake epoch and be treated as newer than the live membership view. - The upstream fix also preserves online imported snapshot membership consistently and rejects invalid target membership before restore. Validation: - `git diff --check` - `GOTELEMETRY=off go mod download github.com/lni/dragonboat/v4` - `GOTELEMETRY=off go list -m -json github.com/lni/dragonboat/v4` - `GOTELEMETRY=off GOCACHE=/private/tmp/mo-dragonboat-3dev-gocache go test github.com/lni/dragonboat/v4/tools github.com/lni/dragonboat/v4/internal/rsm github.com/lni/dragonboat/v4/internal/raft -run '^$' -count=0` Fixes logservice stale replica recovery with the previous MO-side stale truncation metadata cleanup plus the Dragonboat snapshot import metadata fix from matrixorigin#24967. This keeps truncation from processing stale local replica metadata/exported snapshots, and updates Dragonboat so imported snapshots no longer synthesize membership ConfigChangeId from snapshot index.
This branch was previously deployed
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.
What type of PR is this?
Which issue(s) this PR fixes:
issue #24966
What this PR does / why we need it:
This PR updates the MatrixOne
3.0-devbranch to use the Dragonboat snapshot import metadata fix merged in:Main changes:
github.com/lni/dragonboat/v4replacement togithub.com/matrixorigin/dragonboat/v4 v4.0.0-20260612094223-103d119addce.go.sumentries for the updated Dragonboat module.Why this is needed:
Membership.ConfigChangeIdfrom the snapshot index.ConfigChangeIdas the LogService shard epoch.Validation:
git diff --checkGOTELEMETRY=off go mod download github.com/lni/dragonboat/v4GOTELEMETRY=off go list -m -json github.com/lni/dragonboat/v4GOTELEMETRY=off GOCACHE=/private/tmp/mo-dragonboat-3dev-gocache go test github.com/lni/dragonboat/v4/tools github.com/lni/dragonboat/v4/internal/rsm github.com/lni/dragonboat/v4/internal/raft -run '^$' -count=0Local limitation:
GOTELEMETRY=off GOCACHE=/private/tmp/mo-dragonboat-3dev-gocache go test ./pkg/logservice -run '^$' -count=0could not complete in the local environment because the nativeusearch.hheader is missing.