Repository navigation
[release-8.0] DD: bulkdump only targets the remote DC when it is usable - #14384
Merged
Merged
Conversation
added 2 commits
October 29, 2026 13:34
With DD_BULKDUMP_USE_REMOTE_REGION set and usable_regions == 1, the remote DC appears in the region configuration but has no storage servers. Every range was then skipped as having no replica in the target DC, no task was dispatched, and the job never completed. The BulkDumping simulation test hung until timeout whenever BUGGIFY enabled the knob under such a config. Fall back to the primary DC unless usable_regions > 1. (cherry picked from commit 02f2f11)
(cherry picked from commit a93ae89)
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.
ploxiln
approved these changes
Oct 29, 2026
This comment has been minimized.
This comment has been minimized.
…arget DC once per pass (cherry picked from commit 5c89f9a)
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.
mengxu-oai
reviewed
Nov 2, 2026
| const std::vector<Optional<Key>>& dcIds = | ||
| SERVER_KNOBS->DD_BULKDUMP_USE_REMOTE_REGION ? remoteDcIds : primaryDcId; | ||
| // With usable_regions == 1 the remote DC is configured but holds no storage servers. | ||
| const bool useRemote = SERVER_KNOBS->DD_BULKDUMP_USE_REMOTE_REGION && configuration.usableRegions > 1; |
Contributor
There was a problem hiding this comment.
why isn't this caught by correctness?
Contributor
Author
There was a problem hiding this comment.
Looking... looks like the tomls that should run into this have generateFearless = false ... Comments say generateFearless = true or multi regions are flakey. Add test in follow-on?
Contributor
|
@saintstack can we merge this PR? |
mengxu-oai
approved these changes
Nov 4, 2026
nos-a
approved these changes
Nov 4, 2026
saintstack
enabled auto-merge (squash)
November 5, 2026 00:29
Contributor
Result of foundationdb-pr-macos-m1 on macOS 14.x
|
Contributor
Result of foundationdb-pr-clang-ide on Linux RHEL 9
|
Contributor
Result of foundationdb-pr-macos on macOS 14.x
|
Contributor
Result of foundationdb-pr-clang-arm on Linux RHEL 9
|
Contributor
Result of foundationdb-pr-clang on Linux RHEL 9
|
Contributor
Result of foundationdb-pr on Linux RHEL 9
|
Contributor
Result of foundationdb-pr-cluster-tests on Linux RHEL 9
|
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.
Backport of #14380 to release-8.0. Clean cherry-pick of both commits.
DD_BULKDUMP_USE_REMOTE_REGION(randomized by BUGGIFY) selects the remote DC as the bulkdump target. Withusable_regions == 1that DC is in the region configuration but holds no storage servers, soscheduleBulkDumpJobskips every range as having no replica in the target DC, dispatches no task, and the job never completes. Use the remote DC only whenusableRegions > 1; otherwise fall back to the primary. Adds a unit test,/DataDistribution/BulkDump/TargetDcId.Testing: not built or run locally.