NotAllowedOnShardedCollectionCmd should be versioned

XMLWordPrintableJSON

    • Type: Bug
    • Resolution: Fixed
    • Priority: Major - P3
    • 3.5.13
    • Affects Version/s: 3.5.10
    • Component/s: Sharding
    • None
    • Fully Compatible
    • ALL
    • Sharding 2017-08-21, Sharding 2017-09-11
    • None
    • 3
    • None
    • None
    • None
    • None
    • None
    • None

      Despite intending to prevent commands that extend it from running on sharded collections, NotAllowedOnShardedCollectionCmd can run concurrently (i.e. race) with shardCollection.

      To counter this, it should take the same (dist)lock as shardCollection.

      Particularly, this will prevent convertToCapped (which, notably, changes the collection's UUID because it uses cloneCollectionAsCapped (which creates a cloned collection with a different UUID) + renameCollection under the hood) and group from running on sharded collections.

            Assignee:
            Hugh Han (Inactive)
            Reporter:
            Esha Maharishi (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: