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

MongoS may return exit code 48 (EXIT_NET_ERROR) during clean shutdown

    XMLWordPrintableJSON

Details

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Major - P3 Major - P3
    • 3.1.9
    • None
    • Sharding
    • None
    • Fully Compatible
    • ALL
    • 0

    Description

      Whether there's a clean shutdown or not, the network listener thread will return and this is treated as a network error by the mongos main method.

      So there is a race condition between the signal processing thread and the return from the main method as to which thread will call dbexit first. If the signal processing thread calls it first (which happens most of the time), it will result in zero return code. However, if the main method calls it first, this will return into exit code 48.

      Attachments

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved: