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

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

    • Fully Compatible
    • 126

      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.

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

              Created:
              Updated:
              Resolved: