Enclose sharded collection metadata rename logic in a transaction

XMLWordPrintableJSON

    • Fully Compatible
    • Sharding 2020-12-28
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      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)

            Assignee:
            Pierlauro Sciarelli
            Reporter:
            Pierlauro Sciarelli
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: