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

unprotected exception path in migrate critical section

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major - P3
    • Resolution: Fixed
    • Affects Version/s: 2.5.0
    • Fix Version/s: 2.4.6, 2.5.1
    • Component/s: Sharding
    • Labels:
      None
    • Backwards Compatibility:
      Fully Compatible
    • Operating System:
      ALL
    • Steps To Reproduce:
      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

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

              Dates

              Created:
              Updated:
              Resolved: