Skip to content

[release-7.4] DD: choose the bulkdump target DC deliberately instead of by map order - #14276

Merged
ploxiln merged 6 commits into
apple:release-7.4from
saintstack:backport-14198-74
Oct 28, 2026
Merged

ploxiln merged 6 commits into
apple:release-7.4from
saintstack:backport-14198-74

Conversation

@saintstack

Copy link
Copy Markdown
Contributor

Backport of #14198 to release-7.4.

Same change as #14198 (see that PR for rationale). Ported for the 7.4 layout:

  • knob added in fdbclient/ServerKnobs.{cpp,h} (BUGGIFY instead of buggify())
  • getSSBulkDumpTask and its unit test moved to fdbserver/BulkDumpUtil.actor.cpp
  • in the scheduleBulkDumpJob ACTOR, targetDcId is a state variable because it is used across
    the parallelism-limiter wait()

Testing: /BulkDumpUtil/getSSBulkDumpTask/TargetDc passes under fdbserver -r unittests.

apple#14198)

getSSBulkDumpTask picked the target storage server from the first entry of a
std::map keyed by dcId, so the datacenter that performed the dump - and
therefore the upload - was decided by lexicographic ordering of datacenter
names. That carries no information about locality, which region is primary, or
whether the chosen region can reach the destination. On a two-region cluster
whose primary dcId sorts second, every dump task is sent to the remote region,
which also reads from the lagging DR replica rather than the serving one.

Resolve the target from the configuration instead: the primary region by
default, or the remote region when DD_BULKDUMP_USE_REMOTE_REGION is set. It is
re-read per dispatch so it follows a region failover. The scheduler now refuses
to dispatch a range whose target DC holds no replica rather than silently
falling back to another region, so a dump never spans regions, and reports that
once per job rather than once per range per scheduling cycle.

Clusters with no region configuration keep the previous behaviour.

(cherry picked from commit 16a1915)
@saintstack
saintstack requested a review from spraza as a code owner October 13, 2026 20:24
@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.

@spraza

spraza commented Oct 14, 2026

Copy link
Copy Markdown
Collaborator

Talking to @saintstack offline about whether we need this for 7.4.

@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.

@spraza

spraza commented Oct 26, 2026

Copy link
Copy Markdown
Collaborator

Talking to @saintstack offline about whether we need this for 7.4.

Spoke offline. We discussed that this is needed to unblock bulkdump in some cases. Since the change is isolated to bulk dump/load, this can go in 7.4.

@spraza spraza closed this Oct 26, 2026
@spraza spraza reopened this Oct 26, 2026
@spraza

spraza commented Oct 26, 2026

Copy link
Copy Markdown
Collaborator

@saintstack restarted CI. If it's clear, feel free to merge when you get a chance.

@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.

@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.

@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

Copy link
Copy Markdown
Contributor

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

  • Commit ID: 6b3dac9
  • Duration 0:29:01
  • 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

This comment has been minimized.

@foundationdb-ci

Copy link
Copy Markdown
Contributor

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

  • Commit ID: 6b3dac9
  • Duration 0:43:05
  • 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: 6b3dac9
  • Duration 0:56:20
  • 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

This comment has been minimized.

@foundationdb-ci

Copy link
Copy Markdown
Contributor

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

  • Commit ID: 6b3dac9
  • Duration 1:39:53
  • 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)

@foundationdb-ci

This comment has been minimized.

@foundationdb-ci

Copy link
Copy Markdown
Contributor

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

  • Commit ID: 6b3dac9
  • Duration 3:45:45
  • 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)

@ploxiln

ploxiln commented Oct 28, 2026

Copy link
Copy Markdown
Collaborator

hmm another unlucky clang-build joshua test case fail:

fdbserver -r simulation --crash --logsize 1024MB -f src/foundationdb/tests/fast/BulkDumping.toml --buggify on --seed 714269795

20261028-081410-pr14276-clang-6b3dac9e-1783-592d5b54e7b4e975 compressed=True data_size=41754156 duration=322365 ended=10000 fail=1 fail_fast=10 max_runs=10000 pass=9999 priority=100 remaining=0 runtime=0:13:59 sanity=False started=10000 stopped=20261028-082809 submitted=20261028-081410 timeout=5400 username=pr14276-clang-6b3dac9e-17839

@foundationdb-ci

Copy link
Copy Markdown
Contributor

Result of foundationdb-pr-clang on Linux RHEL 9

  • Commit ID: 6b3dac9
  • Duration 0:36:45
  • 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)

@ploxiln
ploxiln merged commit 31fb190 into apple:release-7.4 Oct 28, 2026
7 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.

5 participants