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

config.cache chunks can get into a bad state

    • Type: Icon: Bug Bug
    • Resolution: Won't Do
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: None
    • Component/s: Sharding
    • Labels:
      None
    • Sharding EMEA
    • ALL
    • 15

      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.

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

              Created:
              Updated:
              Resolved: