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

Mongos stalls during shutdown on Windows

    • Type: Icon: Bug Bug
    • Resolution: Done
    • Priority: Icon: Major - P3 Major - P3
    • 3.3.14
    • Affects Version/s: 3.2.5
    • Component/s: Sharding
    • None
    • Fully Compatible
    • ALL
    • Sharding 17 (07/15/16), Platforms 16 (06/24/16), Sharding 2016-09-19

      Configure a config server and a mongos that connects to it, both running as Windows services. Start both, connect to the mongos from the Mongo shell, and run the following:

      use admin
      db.runCommand({ shutdown: 1 })
      

      The Mongo shell will stall for a few seconds while the server is unresponsive and then eventually time out. If you observe what's happening in the Windows Services window, you'll notice that the mongos remains running but unresponsive while the Mongo shell is stalled. Once the Mongo shell stops trying to communicate with it, it immediately stops. (Please note that the Windows Services window does not automatically refresh, so it is necessary to repeatedly press F5 in order to see this.) This behavior is a regression that was introduced in MongoDB 3.2.5. If you do the same thing with earlier versions of MongoDB, the Windows service stops immediately and the Mongo shell just displays some error messages without stalling. The issue was detected because it is causing an Automation Agent tests, FickleUtilSuite.TestIsLowestMongosUpInCluster, to fail on Windows only.

      CC mark.benvenuto

            Assignee:
            schwerin@mongodb.com Andy Schwerin
            Reporter:
            david.golub@mongodb.com David Golub
            Votes:
            0 Vote for this issue
            Watchers:
            7 Start watching this issue

              Created:
              Updated:
              Resolved: