AutoGetCollection can throw an unhandled exception within onShardVersionMismatch

XMLWordPrintableJSON

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

      https://github.com/mongodb/mongo/blob/r4.1.0/src/mongo/db/s/shard_filtering_metadata_refresh.cpp#L75

      For example, resolveNamespace can throw NamespaceNotFound, acquiring DBLock can assert if opCtx is mark as killed, lock timed out, etc.

      This can cause the server to terminate because onShardVersionMismatch has noexcept label.

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

              Created:
              Updated:
              Resolved: