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

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

    XMLWordPrintable

    Details

    • Type: Task
    • Status: Closed
    • Priority: Major - P3
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 4.9.0
    • Component/s: Sharding
    • Backwards Compatibility:
      Fully Compatible
    • Linked BF Score:
      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

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

              Dates

              Created:
              Updated:
              Resolved: