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-17 07:58:50 +0000 |
commit | b8f82e49159b5ea7156cc26fd056f8a814b4eca6 (patch) | |
tree | 04b78a70343e953d35856bc3fb4915c42f72f9bf /src/mongo/db/s | |
parent | 70168a9c71de72f9af42893418525fbfc94f3576 (diff) | |
download | mongo-b8f82e49159b5ea7156cc26fd056f8a814b4eca6.tar.gz |
SERVER-54014 Define a reasonable maxTimeMsOverride for the checkOID requests
Diffstat (limited to 'src/mongo/db/s')
-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 c5c54699104..d8679530e3d 100644 --- a/src/mongo/db/s/balancer/balancer.cpp +++ b/src/mongo/db/s/balancer/balancer.cpp @@ -529,6 +529,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); @@ -551,6 +552,7 @@ bool Balancer::_checkOIDs(OperationContext* opCtx) { ReadPreferenceSetting{ReadPreference::PrimaryOnly}, "admin", BSON("features" << 1 << "oidReset" << 1), + Seconds(30), Shard::RetryPolicy::kIdempotent)); uassertStatusOK(result.commandStatus); @@ -562,6 +564,7 @@ bool Balancer::_checkOIDs(OperationContext* opCtx) { ReadPreferenceSetting{ReadPreference::PrimaryOnly}, "admin", BSON("features" << 1 << "oidReset" << 1), + Seconds(30), Shard::RetryPolicy::kIdempotent)); uassertStatusOK(result.commandStatus); } |