MoveCollection hangs if the destination shard is specified as the shard url

XMLWordPrintableJSON

    • Type: Bug
    • Resolution: Fixed
    • Priority: Major - P3
    • 8.1.0-rc0
    • Affects Version/s: None
    • Component/s: None
    • Cluster Scalability
    • Minor Change
    • ALL
    • v8.0
    • 3
    • None
    • 3
    • None
    • None
    • None
    • None
    • None
    • None

      If you call moveCollection and specify the destination using the url of the shard rather than the shard name, the resharding operation will hang.

      ex.
       

      assert.commandWorked(st.s.adminCommand({moveCollection: unsplittableCollNs, toShard: st.rs0.getURL()}));

      will hang the test.

      This is something we actually allow for movePrimary (see this test as an example) so I would expect this to work fine.
       

            Assignee:
            David Chen
            Reporter:
            Allison Easton
            Votes:
            0 Vote for this issue
            Watchers:
            9 Start watching this issue

              Created:
              Updated:
              Resolved: