diff options
author | Max Hirschhorn <max.hirschhorn@mongodb.com> | 2021-10-28 14:53:03 +0000 |
---|---|---|
committer | Evergreen Agent <no-reply@evergreen.mongodb.com> | 2021-10-28 15:23:06 +0000 |
commit | 0036d54b93c6703864c92181c9694605726f108b (patch) | |
tree | d1da51c496310b31c6368107284db93adbe521fe | |
parent | 1a192eb1ed4dc0f3c2be3afb2cc79e50eae81ebc (diff) | |
download | mongo-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.cpp | 2 |
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 { |