SERVER-104223 Failures in preWarmConnectionPool() will cause mongos to fail startup (#35363) (#51032)
GitOrigin-RevId: 9a09afa25ef7b5846afcd1f9224ab8921b5acc8b
This commit is contained in:
parent
8bcd27de30
commit
9bcef7ffda
@ -716,6 +716,8 @@ Status initializeSharding(
|
||||
LOGV2_WARNING(6203601, "Failed to warmup routing information", "error"_attr = redact(ex));
|
||||
}
|
||||
|
||||
// Pre-warm the connection pool may fail. Since this is just an optimization, any failure must
|
||||
// not prevent mongos from starting.
|
||||
{
|
||||
auto scopedTimer =
|
||||
createTimeElapsedBuilderScopedTimer(opCtx->getServiceContext()->getFastClockSource(),
|
||||
@ -723,7 +725,8 @@ Status initializeSharding(
|
||||
startupTimeElapsedBuilder);
|
||||
Status status = preWarmConnectionPool(opCtx);
|
||||
if (!status.isOK()) {
|
||||
return status;
|
||||
LOGV2_WARNING(
|
||||
104223, "Failed to warmup the collection pool", "error"_attr = status.reason());
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user