summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMax Hirschhorn <max.hirschhorn@mongodb.com>2021-10-28 14:53:03 +0000
committerEvergreen Agent <no-reply@evergreen.mongodb.com>2021-10-28 15:23:06 +0000
commit0036d54b93c6703864c92181c9694605726f108b (patch)
treed1da51c496310b31c6368107284db93adbe521fe
parent1a192eb1ed4dc0f3c2be3afb2cc79e50eae81ebc (diff)
downloadmongo-0036d54b93c6703864c92181c9694605726f108b.tar.gz
SERVER-60916 Attempt to reload ShardRegistry in resharding coordinator.
The ARS (AsyncRequestSender) calls ShardRegistry::getShardNoReload() and can therefore throw a ShardNotFound exception when the ShardRegistry is still initializing. (cherry picked from commit dd41a99e2c177d5bd3a38229d85458117480c5d9)
-rw-r--r--src/mongo/db/s/resharding/resharding_coordinator_service.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mongo/db/s/resharding/resharding_coordinator_service.cpp b/src/mongo/db/s/resharding/resharding_coordinator_service.cpp
index 095f1398b88..caa92bd1e59 100644
--- a/src/mongo/db/s/resharding/resharding_coordinator_service.cpp
+++ b/src/mongo/db/s/resharding/resharding_coordinator_service.cpp
@@ -898,7 +898,7 @@ void ReshardingCoordinatorExternalStateImpl::sendCommandToShards(
const BSONObj& command,
const std::vector<ShardId>& shardIds,
const std::shared_ptr<executor::TaskExecutor>& executor) {
- sharding_util::sendCommandToShards(opCtx, dbName, command, shardIds, executor);
+ sharding_ddl_util::sendAuthenticatedCommandToShards(opCtx, dbName, command, shardIds, executor);
}
ThreadPool::Limits ReshardingCoordinatorService::getThreadPoolLimits() const {