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

Convert removeCollAndChunksMetadataFromConfig() into a transactional operation

    • Type: Icon: Improvement Improvement
    • Resolution: Won't Do
    • Priority: Icon: Minor - P4 Minor - P4
    • None
    • Affects Version/s: None
    • Component/s: None
    • None
    • Catalog and Routing

      TheĀ sharding_ddl_util::removeCollAndChunksMetadataFromConfigremoveCollAndChunksMetadataFromConfig() helper method implements the removal of any sharding metadata concerning a collection and supports the commit of several DDL operations (such as dropCollection, dropDatabase, convertToCapped).

      Due to historical reason, such an implementation is composed by 3 non-atomic steps, and this may potentially introduce undesired side effects in case the DDL doesn't adopt replay protection countermeasures.

      This can be easily improved by converting removeCollAndChunksMetadataFromConfig() into a transaction.

            Assignee:
            Unassigned Unassigned
            Reporter:
            paolo.polato@mongodb.com Paolo Polato
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: