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

DBConnectionPool doesn't return code `ShutdownInProgress` when it is being shut down

    XMLWordPrintableJSON

Details

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Major - P3 Major - P3
    • 3.6.0-rc0
    • 3.4.9, 3.5.13
    • Networking
    • None
    • Fully Compatible
    • ALL
    • Sharding 2017-10-02
    • 0

    Description

      Some sharding code paths (such as migration commit) rely on a shutdown code to be specified in order to gracefully terminate.

      The DBConnectionPool stops working when the server starts the shutdown sequence, but returns code 17382, which cannot be used to infer a shutdown.

      We should make it return a ErrorCodes::ShutdownInProgress instead.

      Attachments

        Activity

          People

            kaloian.manassiev@mongodb.com Kaloian Manassiev
            kaloian.manassiev@mongodb.com Kaloian Manassiev
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: