Uploaded image for project: 'Documentation'
  1. Documentation
  2. DOCS-14642

Add resource locking section for sharded clusters in rename collection documentation

    XMLWordPrintableJSON

Details

    Description

      Add a section briefly explaining the unavailability windows for collections undergoing a rename in sharded clusters (starting from v5.0).

      The following rules apply for both sharded and unsharded collections:

      • Source collection is locked on every shard in exclusive way (r/w will get enqueue and eventually timeout)
      • Target collection is locked on every shard in exclusive way (r/w will get enqueue and eventually timeout)
      • All subsequent operations on the involved collections must wait until renameCollection completes

      Attachments

        Activity

          People

            jason.price@mongodb.com Jason Price
            pierlauro.sciarelli@mongodb.com Pierlauro Sciarelli
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:
              2 years, 24 weeks, 2 days ago