GeezerVison is showing github.com — Fix a race that can cause recovery to be stuck [release 7.3] by jzhou77 · Pull Request #12213 · apple/foundationdb
Conversation
jzhou77
commented
Jun 29, 2025
•
edited
Loading
Uh oh!
There was an error while loading. Please reload this page.
cherrypick #12212
20250629-175225-jzhou-60f3990a9c426e09 compressed=True data_size=34315110 duration=15140154 ended=500000 fail_fast=10 max_runs=500000 pass=500000 priority=100 remaining=0 runtime=5:36:59 sanity=False started=500000 stopped=20250629-232924 submitted=20250629-175225 timeout=5400 username=jzhou
Code-Reviewer Section
The general pull request guidelines can be found here.
Please check each of the following things and check all boxes before accepting a PR.
- The PR has a description, explaining both the problem and the solution.
- The description mentions which forms of testing were done and the testing seems reasonable.
- Every function/class/actor that was touched is reasonably well documented.
For Release-Branches
If this PR is made against a release-branch, please also check the following:
- This change/bugfix is a cherry-pick from the next younger branch (younger
release-branch or main if this is the youngest branch)
- There is a good reason why this PR needs to go into a release branch and this reason is documented (either in the description above or in a linked GitHub issue)
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
When purging old generations, these no longer needed generations are removed in
the in-memory LogSystem data structure. Then the change is made durable on
coordinators.
If there is a recovery happened before the change is durable, and ServerDBInfo
broadcast is sent to the old tlogs and they can be displaced/removed. As a
result, the recovery will become stuck waiting for locking these old tlogs.
This PR updates the purging so that it never directly changes the in-memory data
structure and only modifies states on coordinators. So next recovery will pick
up the change.
This allows old tlogs to be removed after CC purges them.
20250628-180019-jzhou-69511e1cbc01ab08
Result of foundationdb-pr-clang-arm on Linux CentOS 7
- Commit ID: e04504c
- Duration 0:05:10
- Result: ❌ FAILED
- Error:
Error while executing command: ninja -v -C build_output -j ${NPROC} all packages strip_targets. Reason: exit status 1
- Build Log terminal output (available for 30 days)
- Build Workspace zip file of the working directory (available for 30 days)
|
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
Result of foundationdb-pr on Linux RHEL 9
- Commit ID: e04504c
- Duration 0:07:52
- Result: ❌ FAILED
- Error:
Error while executing command: ninja -v -C build_output -j ${NPROC} all packages strip_targets. Reason: exit status 1
- Build Log terminal output (available for 30 days)
- Build Workspace zip file of the working directory (available for 30 days)
|
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
Result of foundationdb-pr-clang on Linux RHEL 9
- Commit ID: e04504c
- Duration 0:08:03
- Result: ❌ FAILED
- Error:
Error while executing command: ninja -v -C build_output -j ${NPROC} all packages strip_targets. Reason: exit status 1
- Build Log terminal output (available for 30 days)
- Build Workspace zip file of the working directory (available for 30 days)
|
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
Result of foundationdb-pr-cluster-tests on Linux RHEL 9
- Commit ID: e04504c
- Duration 0:08:07
- Result: ❌ FAILED
- Error:
Error while executing command: ninja -v -C build_output -j ${NPROC} all packages strip_targets. Reason: exit status 1
- Build Log terminal output (available for 30 days)
- Build Workspace zip file of the working directory (available for 30 days)
- Cluster Test Logs zip file of the test logs (available for 30 days)
|
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
Result of foundationdb-pr-macos-m1 on macOS Ventura 13.x
- Commit ID: e04504c
- Duration 0:33:06
- Result: ✅ SUCCEEDED
- Error:
N/A
- Build Log terminal output (available for 30 days)
- Build Workspace zip file of the working directory (available for 30 days)
|
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
Result of foundationdb-pr-macos on macOS Ventura 13.x
- Commit ID: e04504c
- Duration 0:49:29
- Result: ✅ SUCCEEDED
- Error:
N/A
- Build Log terminal output (available for 30 days)
- Build Workspace zip file of the working directory (available for 30 days)
|
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
neethuhaneesha
pushed a commit
to neethuhaneesha/foundationdb
that referenced
this pull request
Feb 25, 2026
…2213)
* Fix a race that can causes recovery to be stuck
When purging old generations, these no longer needed generations are removed in
the in-memory LogSystem data structure. Then the change is made durable on
coordinators.
If there is a recovery happened before the change is durable, and ServerDBInfo
broadcast is sent to the old tlogs and they can be displaced/removed. As a
result, the recovery will become stuck waiting for locking these old tlogs.
This PR updates the purging so that it never directly changes the in-memory data
structure and only modifies states on coordinators. So next recovery will pick
up the change.
* Add in-memory purging of old generation after writing coordinators
This allows old tlogs to be removed after CC purges them.
20250628-180019-jzhou-69511e1cbc01ab08
Reviewers
spraza
Awaiting requested review from spraza
+1 more reviewer
dlambrig
dlambrig approved these changes
Reviewers whose approvals may not affect merge requirements
Uh oh!
There was an error while loading. Please reload this page.
Assignees
No one assigned
Milestone
No milestone
Development
Successfully merging this pull request may close these issues.
Uh oh!
There was an error while loading. Please reload this page.
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.
|