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

Delete config.collections entry before deleting config.chunks on new DDL paths

    XMLWordPrintableJSON

Details

    • Fully Compatible
    • 126

    Description

      Deleting the config.collections entry before the config.chunks entries ensures that a CatalogCache refresh won't see partial chunks.

      In particular, if we don't do this we may trip this invariant . The CatalogCache refresh could see that the allowMigrations field in config.collections was changed, but the chunk that was bumped along with it may be already deleted by the dropCollection, so the CatalogCache doesn't see a new version.

      Attachments

        Activity

          People

            jordi.serra-torrens@mongodb.com Jordi Serra Torrens
            jordi.serra-torrens@mongodb.com Jordi Serra Torrens
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: