Uploaded image for project: 'Core Server'
  1. Core Server
  2. SERVER-104223

Failures in preWarmConnectionPool() will cause mongos to fail startup

    • Type: Icon: Improvement Improvement
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 8.2.0-rc0
    • Affects Version/s: 5.0.0, 6.0.0, 7.0.0, 8.0.0, 8.2.0-rc0
    • Component/s: None
    • None
    • Catalog and Routing
    • Fully Compatible
    • v8.1, v8.0, v7.0, v6.0
    • CAR Team 2025-04-28
    • 0
    • None
    • 0
    • None
    • None
    • None
    • None
    • None
    • None

      preWarmConnectionPool() is ran during the mongos main startup, and it is ultimately a best-effort. However, failures when reading the list of shards from the configsvr will cause preWarmConnectionPool to fail, which results in mongos exiting with an error code 5 (ExitCode::shardingError)

      Similarly to SERVER-62036, we should also make failures on preWarmConnectionPool() not end the process

            Assignee:
            enrico.golfieri@mongodb.com Enrico Golfieri
            Reporter:
            jordi.serra-torrens@mongodb.com Jordi Serra Torrens
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: