Skip to content

[release-8.0] DD: bulkdump only targets the remote DC when it is usable - #14384

Merged
saintstack merged 4 commits into
apple:release-8.0from
saintstack:backport-14380-80
Nov 5, 2026
Merged

saintstack merged 4 commits into
apple:release-8.0from
saintstack:backport-14380-80

Conversation

@saintstack

Copy link
Copy Markdown
Contributor

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. With usable_regions == 1 that DC is in the region configuration but holds no storage servers, so scheduleBulkDumpJob skips every range as having no replica in the target DC, dispatches no task, and the job never completes. Use the remote DC only when usableRegions > 1; otherwise fall back to the primary. Adds a unit test, /DataDistribution/BulkDump/TargetDcId.

Testing: not built or run locally.

michael stack 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)
@saintstack
saintstack requested a review from spraza as a code owner October 29, 2026 20:36
@saintstack
saintstack requested a review from ploxiln October 29, 2026 20:39
@foundationdb-ci

This comment has been minimized.

@foundationdb-ci

This comment has been minimized.

@foundationdb-ci

This comment has been minimized.

@foundationdb-ci

This comment has been minimized.

@foundationdb-ci

This comment has been minimized.

@foundationdb-ci

This comment has been minimized.

@foundationdb-ci

This comment has been minimized.

@foundationdb-ci

This comment has been minimized.

…arget DC once per pass

(cherry picked from commit 5c89f9a)
@foundationdb-ci

This comment has been minimized.

@foundationdb-ci

This comment has been minimized.

@foundationdb-ci

This comment has been minimized.

@foundationdb-ci

This comment has been minimized.

@foundationdb-ci

This comment has been minimized.

@foundationdb-ci

This comment has been minimized.

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;

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

why isn't this caught by correctness?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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?

@mengxu-oai

Copy link
Copy Markdown
Contributor

@saintstack can we merge this PR?

@saintstack
saintstack enabled auto-merge (squash) November 5, 2026 00:29
@foundationdb-ci

Copy link
Copy Markdown
Contributor

Result of foundationdb-pr-macos-m1 on macOS 14.x

  • Commit ID: 1418b21
  • Duration 0:21:39
  • 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)

@foundationdb-ci

Copy link
Copy Markdown
Contributor

Result of foundationdb-pr-clang-ide on Linux RHEL 9

  • Commit ID: 1418b21
  • Duration 0:21:50
  • 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)

@foundationdb-ci

Copy link
Copy Markdown
Contributor

Result of foundationdb-pr-macos on macOS 14.x

  • Commit ID: 1418b21
  • Duration 0:45:41
  • 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)

@foundationdb-ci

Copy link
Copy Markdown
Contributor

Result of foundationdb-pr-clang-arm on Linux RHEL 9

  • Commit ID: 1418b21
  • Duration 0:48:32
  • 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)

@foundationdb-ci

Copy link
Copy Markdown
Contributor

Result of foundationdb-pr-clang on Linux RHEL 9

  • Commit ID: 1418b21
  • Duration 0:57:47
  • 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)

@foundationdb-ci

Copy link
Copy Markdown
Contributor

Result of foundationdb-pr on Linux RHEL 9

  • Commit ID: 1418b21
  • Duration 1:00:26
  • 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)

@foundationdb-ci

Copy link
Copy Markdown
Contributor

Result of foundationdb-pr-cluster-tests on Linux RHEL 9

  • Commit ID: 1418b21
  • Duration 1:46:40
  • 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)
  • Cluster Test Logs zip file of the test logs (available for 30 days)

@saintstack
saintstack merged commit 500b6d6 into apple:release-8.0 Nov 5, 2026
10 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants