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

In a chunk migration, TO-side shard can't commit before pushing chunk writes to secondary

    • Type: Icon: Bug Bug
    • Resolution: Done
    • Priority: Icon: Major - P3 Major - P3
    • 1.7.4
    • Affects Version/s: None
    • Component/s: Sharding
    • None
    • ALL

      db/repl_block.h opReplicatedEnough has to be called in _recvChunkCommit

      Here's a race:

      > 0) TO-Primary receives last mods for a transfered chunk
      > 1) FROM-Primary initiates chunk migration commit calling
      > _recvChunkCommit on TO-Primary
      > 2) TO-Primary acks it but TO-Secondary hasn't caught up
      > 3) FROM-Primary updates config
      > 4) TO-Primary dies
      > 5) TO-Secondary takes over but it doesn't know about last mods

            Assignee:
            alerner Alberto Lerner
            Reporter:
            alerner Alberto Lerner
            Votes:
            1 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: