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

Properly set error responses in NetworkInterfaceASIO when we fail to get a connection from the pool

    • Type: Icon: Bug Bug
    • Resolution: Done
    • Priority: Icon: Major - P3 Major - P3
    • 3.1.6
    • Affects Version/s: 3.1.5
    • Component/s: Networking
    • None
    • Fully Compatible
    • ALL
    • Platform 6 07/17/15

      The bug causing the auth failures is here:

                  ResponseStatus status(exceptionToStatus());
                  asio::post(_io_service, [this, op, status]() { return _completeOperation(op); });
                  return;
      

      We should set the ResponseStatus constructed from the exception as the result of executing the command, but we don't. As a result, we don't hit special logic in TopologyCoordinatorImpl::processHeartbeatResponse that is used for handling authentication failures in heartbeats.

            Assignee:
            adam.midvidy Adam Midvidy
            Reporter:
            samantha.ritter@mongodb.com Samantha Ritter (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: