The `removeShard` command is not idempotent for the purposes of the sharding continuous config stepdown suite

XMLWordPrintableJSON

    • Type: Bug
    • Resolution: Unresolved
    • Priority: Major - P3
    • None
    • Affects Version/s: 3.6.1
    • None
    • Catalog and Routing
    • ALL
    • Hide

      This is causing a new test to fail so should be reevaluated.

      Show
      This is causing a new test to fail so should be reevaluated.
    • 36
    • None
    • 3
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      The first invocation of `removeShard`, if retried after a stepdown may actually remove the shard instead of just putting it into 'draining' mode. This makes tests running under the continuous config stepdown suite fail intermittently at lines, which call removeShard.

      This ticket is to figure out what to do about these tests. We should either blacklist them or change them to expect that removeShard might not find the shard (with an appropriate check beforehand that the shard exists).

      Alternatively, we can change the removeShard implementation on mongos to not fail if it found the shard initially, but then got ShardNotFound from the config server.

              Assignee:
              [DO NOT USE] Backlog - Catalog and Routing
              Reporter:
              Kaloian Manassiev
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Created:
                Updated: