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

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

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major - P3
    • Resolution: Fixed
    • Affects Version/s: 3.4.9, 3.5.13
    • Fix Version/s: 3.6.0-rc0
    • Component/s: Networking
    • Labels:
      None
    • Backwards Compatibility:
      Fully Compatible
    • Operating System:
      ALL
    • Sprint:
      Sharding 2017-10-02
    • Linked BF Score:
      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

            Assignee:
            kaloian.manassiev Kaloian Manassiev
            Reporter:
            kaloian.manassiev Kaloian Manassiev
            Participants:
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: