GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

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

@jzhou77 jzhou77 commented Jun 29, 2025 •
edited
Loading

Uh oh!

There was an error while loading. Please reload this page.

Copy link
Copy Markdown
Collaborator

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.

All reactions
jzhou77 added 2 commits June 29, 2025 10:38
@jzhou77
Fix a race that can causes recovery to be stuck
8f0467a
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.
@jzhou77
Add in-memory purging of old generation after writing coordinators
e04504c
This allows old tlogs to be removed after CC purges them.

20250628-180019-jzhou-69511e1cbc01ab08
@foundationdb-ci

foundationdb-ci commented Jun 29, 2025

Copy link
Copy Markdown
Contributor

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)
All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@foundationdb-ci

foundationdb-ci commented Jun 29, 2025

Copy link
Copy Markdown
Contributor

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)
All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@foundationdb-ci

foundationdb-ci commented Jun 29, 2025

Copy link
Copy Markdown
Contributor

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)
All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@foundationdb-ci

foundationdb-ci commented Jun 29, 2025

Copy link
Copy Markdown
Contributor

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)
All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@foundationdb-ci

foundationdb-ci commented Jun 29, 2025

Copy link
Copy Markdown
Contributor

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)
All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@foundationdb-ci

foundationdb-ci commented Jun 29, 2025

Copy link
Copy Markdown
Contributor

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)
All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@jzhou77
jzhou77 requested review from dlambrig and sbodagala June 30, 2025 16:50
sbodagala
sbodagala approved these changes Jun 30, 2025
View reviewed changes
@jzhou77
jzhou77 requested a review from spraza July 1, 2025 00:00
dlambrig
dlambrig approved these changes Jul 1, 2025
View reviewed changes
@jzhou77
jzhou77 merged commit ae5cd1d into apple:release-7.3 Jul 1, 2025
neethuhaneesha pushed a commit to neethuhaneesha/foundationdb that referenced this pull request Feb 25, 2026
@jzhou77 @neethuhaneesha
Fix a race that can cause recovery to be stuck [release 7.3] (apple#1…
89f5edc
…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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

@sbodagala sbodagala sbodagala approved these changes
@spraza spraza Awaiting requested review from spraza
+1 more reviewer
@dlambrig 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

Labels

None yet

Projects

None yet

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.

4 participants

@jzhou77 @foundationdb-ci @dlambrig @sbodagala
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.
You are visitor 01402792 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.