Repository navigation
[release-7.4] DD: choose the bulkdump target DC deliberately instead of by map order - #14276
Conversation
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)
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.
|
Talking to @saintstack offline about whether we need this for 7.4. |
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.
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. |
|
@saintstack restarted CI. If it's clear, feel free to merge when you get a chance. |
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.
Result of foundationdb-pr-macos-m1 on macOS 14.x
|
This comment has been minimized.
This comment has been minimized.
Result of foundationdb-pr-clang-arm on Linux RHEL 9
|
Result of foundationdb-pr on Linux RHEL 9
|
This comment has been minimized.
This comment has been minimized.
Result of foundationdb-pr-cluster-tests on Linux RHEL 9
|
This comment has been minimized.
This comment has been minimized.
Result of foundationdb-pr-macos on macOS 14.x
|
|
hmm another unlucky clang-build joshua test case fail:
|
Result of foundationdb-pr-clang on Linux RHEL 9
|
Backport of #14198 to release-7.4.
Same change as #14198 (see that PR for rationale). Ported for the 7.4 layout:
the parallelism-limiter wait()
Testing: /BulkDumpUtil/getSSBulkDumpTask/TargetDc passes under fdbserver -r unittests.