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

mongos can use invalid ptr to master conn when setShardVersion fails

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major - P3
    • Resolution: Fixed
    • 2.2.0
    • 2.2.1, 2.3.0
    • None
    • None
    • ALL

    Description

      Mongos can crash if an error occurs with a replica set while trying to set the shard version - because checkShardVersion uses the legacy masterConn() call, it retains a pointer to the now-invalid connection.

      Potential fix is to retry not with the same connection but with the replica set connection object.

      Attachments

        Issue Links

          Activity

            People

              randolph@mongodb.com Randolph Tan
              greg_10gen Greg Studer
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: