onShardVersionMismatch must catch exceptions in AutoGetCollection

XMLWordPrintableJSON

    • Type: Bug
    • Resolution: Duplicate
    • Priority: Major - P3
    • None
    • Affects Version/s: None
    • Component/s: Replication, Sharding
    • None
    • Sharding
    • ALL
    • None
    • 3
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      onShardVersionMismatch in src/mongo/db/s/shard_filtering_metadata_refresh.cpp is marked noexcept, meaning any exception which escapes the context will terminate the server. AutoGetCollection can throw an exception if it can't get the collection lock for any reason, including step down. So a badly timed step down crashes the process.

              Assignee:
              [DO NOT USE] Backlog - Sharding Team
              Reporter:
              Matthew Russotto
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

                Created:
                Updated:
                Resolved: