diff options
author | Charlie Swanson <charlie.swanson@mongodb.com> | 2018-07-31 18:04:40 -0400 |
---|---|---|
committer | Charlie Swanson <charlie.swanson@mongodb.com> | 2018-07-31 22:58:36 -0400 |
commit | ed055ca17c3ce216ccd7ad12b6bc3f7fa27e6e50 (patch) | |
tree | 53e95996daa5582c012ad1088e430f2bd810b68a /src/mongo/executor/network_interface_mock.cpp | |
parent | 075d7fe467e12aa3dfa19aff27672a7a5b34aff0 (diff) | |
download | mongo-ed055ca17c3ce216ccd7ad12b6bc3f7fa27e6e50.tar.gz |
SERVER-36383 Log if NetworkInterfaceMock has requests left at shutdown
Diffstat (limited to 'src/mongo/executor/network_interface_mock.cpp')
-rw-r--r-- | src/mongo/executor/network_interface_mock.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/mongo/executor/network_interface_mock.cpp b/src/mongo/executor/network_interface_mock.cpp index 942d3795eea..5e0f5084c70 100644 --- a/src/mongo/executor/network_interface_mock.cpp +++ b/src/mongo/executor/network_interface_mock.cpp @@ -231,6 +231,8 @@ void NetworkInterfaceMock::shutdown() { _waitingToRunMask |= kExecutorThread; // Prevents network thread from scheduling. lk.unlock(); for (NetworkOperationIterator iter = todo.begin(); iter != todo.end(); ++iter) { + warning() << "Mock network interface shutting down with outstanding request: " + << iter->getRequest(); iter->setResponse( now, {ErrorCodes::ShutdownInProgress, "Shutting down mock network", Milliseconds(0)}); iter->finishResponse(); |