Repository navigation
traceevents for additional info on recruitment failover to remoteDC - #14297
Open
akshay-v-kaushik wants to merge 3 commits into
Open
akshay-v-kaushik wants to merge 3 commits into
akshay-v-kaushik wants to merge 3 commits into
Conversation
…mporary unit tests
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
saintstack
reviewed
Oct 16, 2026
saintstack
left a comment
Contributor
There was a problem hiding this comment.
Looks good.
Small detail below.
Thanks.
| int candidates = 0; | ||
| for (const auto& [key, workers] : fitness_workers) { | ||
| candidates += workers.size(); | ||
| } |
Contributor
There was a problem hiding this comment.
You do this twice. Want to make a getFitnessWorkersCandidates local helper method?
| int candidates = 0; | ||
| for (const auto& [key, workers] : fitness_workers) { | ||
| candidates += workers.size(); | ||
| } |
akshay-v-kaushik
force-pushed
the
LogFailedRecruitment
branch
from
October 16, 2026 18:45
4b0a00f to
04ee310
Compare
Contributor
Author
|
@saintstack added a helper |
This comment has been minimized.
This comment has been minimized.
Contributor
Result of foundationdb-pr-clang-ide on Linux RHEL 9
|
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
Contributor
Result of foundationdb-pr on Linux RHEL 9
|
Contributor
Result of foundationdb-pr-clang on Linux RHEL 9
|
Contributor
Result of foundationdb-pr-clang-arm on Linux RHEL 9
|
This comment has been minimized.
This comment has been minimized.
Contributor
Result of foundationdb-pr-cluster-tests on Linux RHEL 9
|
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
Contributor
Result of foundationdb-pr-macos-m1 on macOS 14.x
|
Contributor
Result of foundationdb-pr-macos on macOS 14.x
|
saintstack
approved these changes
Oct 17, 2026
| .detail("RecruitingRole", "TLog") | ||
| .detail("Required", required) | ||
| .detail("ZonesFound", resultSet.size()) | ||
| .detail("Candidates", candidates); |
Contributor
There was a problem hiding this comment.
nit: could just call countCandidateWorkers here and save the local variable allocation... no biggie.
This branch has not been 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.
Summary
When the primary region can't satisfy a recruitment (for example, all satellite tlog workers sit in one zone),
the cluster controller silently falls back to the other region. The only log was
AttemptingRecruitmentInRemoteDcwithError=no_more_servers, which doesn't say what failed or why.This PR adds a
RecruitmentFailedtrace event at each place that throwsno_more_serversinside theprimary recruitment pass. No behavior change.
What's logged
A new
RecruitmentFailedtrace event (SevWarn) is emitted just before each existingthrow no_more_servers()in the primary recruitment pass.
RecruitingRolesays what was being recruited, and the other fields show why it failed.Test plan
The first commit adds a temporary unit test,
tempRecruitmentFailureTraces, to trigger each trace.The second commit removes it, so the PR's final diff contains only the trace changes.
Scenarios in the temporary test:
data_hall^3 x 1(Backup helper)Each scenario asserts that
findWorkersForConfigurationFromDCstill throwsno_more_servers.Run:
bin/fdbserver -r unittests -f /fdbserver/clustercontroller/tempRecruitmentFailureTraces --logdir <dir>grep -h RecruitmentFailed <tracefile>