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

config.cache chunks can get into a bad state

    XMLWordPrintableJSON

Details

    • Icon: Bug Bug
    • Resolution: Won't Do
    • Icon: Major - P3 Major - P3
    • None
    • None
    • Sharding
    • None
    • Sharding EMEA
    • ALL
    • 15

    Description

      when interrupted in between trying to persist new chunk changes or when the changes gets partially rolled back.

      When shard tries to persist new updates to config.cache, it sets the refreshing flag, deletes the current chunk document and then inserts the newer version. And finally unsets the reloading flag after it finishes processing the updated chunks. However, if the mongod crashed in the middle or some of these writes get partially rolled back (such that insert was rolled back, but not the delete), the config.cache will now be in an inconsistent state.

      Attachments

        Activity

          People

            backlog-server-sharding-emea [DO NOT USE] Backlog - Sharding EMEA
            randolph@mongodb.com Randolph Tan
            Votes:
            0 Vote for this issue
            Watchers:
            8 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: