diff options
author | Max Hirschhorn <max.hirschhorn@mongodb.com> | 2021-10-28 15:11:50 +0000 |
---|---|---|
committer | Evergreen Agent <no-reply@evergreen.mongodb.com> | 2021-10-28 15:36:15 +0000 |
commit | 062b1e0d3cd67c4a93a2a1db9aea1f952b517492 (patch) | |
tree | f98d63f3208a7fd055104c8e6b4bb94d6a7358fa | |
parent | c7ef3f7397bece16952c308c5d691189bb05eadb (diff) | |
download | mongo-062b1e0d3cd67c4a93a2a1db9aea1f952b517492.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 5ad7a31d6ce..401fbca87c5 100644 --- a/src/mongo/db/s/resharding/resharding_coordinator_service.cpp +++ b/src/mongo/db/s/resharding/resharding_coordinator_service.cpp @@ -913,7 +913,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 { |