moveCollection fails when submitted with apiVersion

XMLWordPrintableJSON

    • Type: Bug
    • Resolution: Fixed
    • Priority: Major - P3
    • 8.1.0-rc0, 8.0.0-rc16
    • Affects Version/s: 8.0.0-rc0
    • Component/s: None
    • None
    • Catalog and Routing
    • Fully Compatible
    • ALL
    • v8.0
    • Hide

      db.getSiblingDB('test').runCommand({create: "coll"})

      db.adminCommand({ moveCollection: "test.coll", toShard: "shard02"})

      Show
      db.getSiblingDB('test').runCommand({create: "coll"}) db.adminCommand({ moveCollection: "test.coll", toShard: "shard02"})
    • CAR Team 2024-08-05
    • 0
    • None
    • 3
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      moveCollection command always fails with IllegalOperation error when apiVersion is set.

       

      Internally, in order to execute moveCollection we first attempt to track the collection through the ShardsvrCreateCollection command. In this command we wrongly check for the API version and if the version is set we forbid to track the collection.

              Assignee:
              Tommaso Tocci
              Reporter:
              Tommaso Tocci
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

                Created:
                Updated:
                Resolved: