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

Possible deadlock when returning connection to connection pool

    • Type: Icon: Bug Bug
    • Resolution: Unresolved
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: None
    • Component/s: None
    • None
    • Networking & Observability
    • ALL
    • Egress gRPC 2025-02-14
    • 200

      In the custom deleter for connection pool ConnectionHandles, we acquire a mutex here, and then call updateState. updateState then schedules a task on an executor, which will acquire that same mutex. Due to SERVER-93029, we may run that task inline, but we are already holding the lock, and so there may be a deadlock.

            Assignee:
            erin.mcnulty@mongodb.com Erin McNulty
            Reporter:
            erin.mcnulty@mongodb.com Erin McNulty
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated: