-
Type: Bug
-
Resolution: Unresolved
-
Priority: Major - P3
-
None
-
Affects Version/s: None
-
Component/s: None
-
Networking & Observability
-
ALL
When the mongos receives from a shard either a NonPrimaryError or a ShutdownError, that error is translated before returning a response to the external client. For example, the error InterruptedDueToReplStateChange is translated to a HostUnreachable error to clarify that the router hasn't been interrupted due to a replica state change.
However, the Slow query log printed by the mongos is printing the original error instead of the final one. This is very misleading when it comes to debug failures on tests since tests may fail with a different error than the one reported by the server log.