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

AutoGetCollection can throw an unhandled exception within onShardVersionMismatch

    XMLWordPrintableJSON

Details

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: Major - P3 Major - P3
    • None
    • None
    • Sharding
    • None
    • Sharding
    • ALL

    Description

      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.

      Attachments

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved: