When client send request i see below error in mongos and client also gets timeout error
mongos error:
Dec 12 22:20:37 ip-10-255-161-52 docker[5830]: {“t”:{"$date":“2022-12-12T22:20:37.548+00:00”},“s”:“I”, “c”:“NETWORK”, “id”:4712102, “ctx”:“conn75710”,“msg”:“Host failed in replica set”,“attr”:{“replicaSet”:“rs4”,“host”:“ip-10-XXX-XXX-31.us-east-2.compute.internal:27017”,“error”:{“code”:202,“codeName”:“NetworkInterfaceExceededTimeLimit”,“errmsg”:“Couldn’t get a connection within the time limit of -31ms”},“action”:{“dropConnections”:false,“requestImmediateCheck”:false,“outcome”:{“host”:“ip-10-XXX-162-31.us-east-2.compute.internal:27017”,“success”:false,“errorMessage”:“NetworkInterfaceExceededTimeLimit: Couldn’t get a connection within the time limit of -31ms”}}}}
Dec 12 22:20:37 ip-10-XXX-XXX-52 docker[5830]: {“t”:{"$date":“2022-12-12T22:20:37.548+00:00”},“s”:“I”, “c”:“NETWORK”, “id”:4712102, “ctx”:“conn75722”,“msg”:“Host failed in replica set”,“attr”:{“replicaSet”:“rs4”,“host”:“ip-10-XXX-XXX-31.us-east-2.compute.internal:27017”,“error”:{“code”:202,“codeName”:“NetworkInterfaceExceededTimeLimit”,“errmsg”:“Couldn’t get a connection within the time limit of -31ms”},“action”:{“dropConnections”:false,“requestImmediateCheck”:false,“outcome”:{“host”:“ip-10-XXX-XXX-31.us-east-2.compute.internal:27017”,“success”:false,“errorMessage”:“NetworkInterfaceExceededTimeLimit: Couldn’t get a connection within the time limit of -31ms”}}}}
Client gets this error on thier logs:
Caused by: Job aborted due to stage failure: Query failed with error code 202 and error message ‘Couldn’t get a connection within the time limit of 663ms’ on server 10.XXX.XXX.78:27017
Caused by: MongoQueryException: Query failed with error code 202 and error message ‘Couldn’t get a connection within the time limit of 663ms’ on server 10.XXX.XXX.78:27017