|
When we receive a NetworkInterfaceExceededTimeLimit error due to a connection timeout we are missing 1) the host we are connecting to, and 2) how long we actually waited to get a connection. Usually #1 is clear from the context in the logs, but #2 is often unclear. It would be nice to just explicitly provide this information in the error since timing is often crucial to diagnosing other issues.
Example:
[js_test:safe_secondary_reads_causal_consistency] 2021-01-18T14:28:15.239+0000 s22028| 2021-01-18T14:28:15.239+00:00 D1 - 23074 [conn12] "User assertion","attr":{"error":"NetworkInterfaceExceededTimeLimit: Couldn't get a connection within the time limit","file":"src/mongo/s/async_requests_sender.cpp","line":295
|
|