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

The `testMoveChunkWithSession` test utility should ensure the config server primary knows about the stepped-down shard

    • Type: Icon: Bug Bug
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 3.6.0-rc0
    • Affects Version/s: None
    • Component/s: Sharding
    • None
    • Minor Change
    • ALL
    • Sharding 2017-10-23

      The testMoveChunkWithSession utility calls moveChunk right after it has stepped-down the primary of the donor shard.

      As a result it is possible that the config server primary (which hosts the balancer) hasn't yet figured out the new shard replica set state and as a result the moveChunk command might fail with this message:

      Error: command failed: {
        "ok" : 0,
        "errmsg" : "moveChunk command failed on source shard. :: caused by :: NotMaster: not master",
        "code" : 96,
        "codeName" : "OperationFailed"
        } : undefined :
      

            Assignee:
            kaloian.manassiev@mongodb.com Kaloian Manassiev
            Reporter:
            kaloian.manassiev@mongodb.com Kaloian Manassiev
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: