Legacy renameCollection may proceed renaming a sharded collection

XMLWordPrintableJSON

    • Type: Bug
    • Resolution: Fixed
    • Priority: Major - P3
    • 5.0.0-rc3, 5.1.0-rc0
    • Affects Version/s: 5.0.0-rc1
    • Component/s: Sharding
    • None
    • Fully Compatible
    • ALL
    • v5.0
    • Sharding EMEA 2021-06-28
    • 120
    • None
    • 3
    • None
    • None
    • None
    • None
    • None
    • None

      The legacy-path renameCollection must fail if either the source or the destination collections are sharded.
      It does so by checking if the filtering metadata has the collection as sharded or not.

      There is a situation where after a shardCollection operations has completed writing the config.chunks and config.collections documents, but then steps down before refreshing the filtering metadata, where the new primary may be left with filtering metadata as unsharded. Under that scenario, a legacy-path rename may succeed in renaming a sharded collection.

            Assignee:
            Jordi Serra Torrens
            Reporter:
            Jordi Serra Torrens
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: