diff options
author | Alexandre Bique <alexandre.bique@mongodb.com> | 2021-02-04 16:54:29 +0000 |
---|---|---|
committer | Evergreen Agent <no-reply@evergreen.mongodb.com> | 2021-02-09 17:55:51 +0000 |
commit | 13567cae5052e075150552f9e7c79f9ffbedfc59 (patch) | |
tree | f91f1a7c4cadae0114f47fb13f0384fc6635543b /src/mongo | |
parent | 622ba6fa36050f5a3f9d4decc4aca61eca840147 (diff) | |
download | mongo-13567cae5052e075150552f9e7c79f9ffbedfc59.tar.gz |
SERVER-54014 Define a reasonable maxTimeMsOverride for the checkOID requests
Diffstat (limited to 'src/mongo')
-rw-r--r-- | src/mongo/db/s/balancer/balancer.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/mongo/db/s/balancer/balancer.cpp b/src/mongo/db/s/balancer/balancer.cpp index c650aa249fe..7bc64a61d91 100644 --- a/src/mongo/db/s/balancer/balancer.cpp +++ b/src/mongo/db/s/balancer/balancer.cpp @@ -497,6 +497,7 @@ bool Balancer::_checkOIDs(OperationContext* opCtx) { ReadPreferenceSetting{ReadPreference::PrimaryOnly}, "admin", BSON("features" << 1), + Seconds(30), Shard::RetryPolicy::kIdempotent)); uassertStatusOK(result.commandStatus); BSONObj f = std::move(result.response); @@ -514,6 +515,7 @@ bool Balancer::_checkOIDs(OperationContext* opCtx) { ReadPreferenceSetting{ReadPreference::PrimaryOnly}, "admin", BSON("features" << 1 << "oidReset" << 1), + Seconds(30), Shard::RetryPolicy::kIdempotent)); uassertStatusOK(result.commandStatus); @@ -525,6 +527,7 @@ bool Balancer::_checkOIDs(OperationContext* opCtx) { ReadPreferenceSetting{ReadPreference::PrimaryOnly}, "admin", BSON("features" << 1 << "oidReset" << 1), + Seconds(30), Shard::RetryPolicy::kIdempotent)); uassertStatusOK(result.commandStatus); } |