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

moveCollection fails when submitted with apiVersion

    • Type: Icon: Bug Bug
    • Resolution: Fixed
    • Priority: Icon: Major - P3 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

      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@mongodb.com Tommaso Tocci
            Reporter:
            tommaso.tocci@mongodb.com Tommaso Tocci
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: