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

unprotected exception path in migrate critical section

    • Type: Icon: Bug Bug
    • Resolution: Done
    • Priority: Icon: Major - P3 Major - P3
    • 2.4.6, 2.5.1
    • Affects Version/s: 2.5.0
    • Component/s: 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.

      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.

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

              Created:
              Updated:
              Resolved: