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

AutoGetCollection can throw an unhandled exception within onShardVersionMismatch

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

      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:
            backlog-server-sharding [DO NOT USE] Backlog - Sharding Team
            Reporter:
            randolph@mongodb.com Randolph Tan
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved: