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

unprotected exception path in migrate critical section

    XMLWordPrintableJSON

Details

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Major - P3 Major - P3
    • 2.4.6, 2.5.1
    • 2.5.0
    • Sharding
    • None
    • Fully Compatible
    • ALL
    • Hide

      Have a new connect or auth fail to the TO shard immediately before sending _recvChunkCommit.

      Show
      Have a new connect or auth fail to the TO shard immediately before sending _recvChunkCommit.

    Description

      The ScopedDbConnection constructor can throw if it needs to create a new connection and something goes wrong. The constructor isn't protected by a try/catch when we send our _recvChunkCommit command, so this can rarely fail in a way that does not reset shard version.

      Manifests as "shard global version for collection is higher than trying to set" messages. Workaround is to stepDown or restart the shard primary.

      Attachments

        Activity

          People

            greg_10gen Greg Studer
            greg_10gen Greg Studer
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: