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

Enclose sharded collection metadata rename logic in a transaction

    XMLWordPrintableJSON

Details

    • Fully Compatible
    • Sharding 2020-12-28

    Description

      As part of the rename flow for sharded collections, the primary shard will issue on the CSRS a transaction enclosing the following operations:

      • Update config.collections entry: change nss and epoch (it is actually needed to delete/recreate the document since the namespace is saved in the immutable _id field).
      • Update config.chunks entries: change epoch/timestamp (no need to consider the nss field: it's thrown out under SERVER_53105 and rename will just happen with stable FCV)

      Attachments

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved: