0

Replaced config server by https://www.mongodb.com/docs/v4.4/tutorial/replace-config-server/, now we are seeing problems from mongos server. It can be seen from the log that the mongos server tries to connect to only one config server, the one that was replaced.

This happens if the Secondary config server is behind the Primary in replication. As soon as replication returns to normal, the errors disappear.

What should be done to avoid such errors? Thanks!

{"t":{"$date":"2022-03-23T10:22:05.342+03:00"},"s":"I",  "c":"NETWORK",  "id":4712102, "ctx":"ConfigServerCatalogCacheLoader-43813","msg":"Host failed in replica set","attr":{"replicaSet":"CSRS","host":"csrs-host03
:27019","error":{"code":202,"codeName":"NetworkInterfaceExceededTimeLimit","errmsg":"Request 17875551933 timed out, deadline was 2022-03-23T10:22:05.342+03:00, op was RemoteCommand 17875551
933 -- target:[csrs-host03:27019] db:config expDate:2022-03-23T10:22:05.342+03:00 cmd:{ find: \"collections\", filter: { _id: \"config.system.sessions\" }, readConcern: { level: \"majority\",
afterOpTime: { ts: Timestamp(1648020095, 97), t: 93 } }, limit: 1, maxTimeMS: 30000 }"},"action":{"dropConnections":false,"requestImmediateCheck":false,"outcome":{"host":"csrs-host03:27019","s
uccess":false,"errorMessage":"NetworkInterfaceExceededTimeLimit: Request 17875551933 timed out, deadline was 2022-03-23T10:22:05.342+03:00, op was RemoteCommand 17875551933 -- target:[csrs-host03:27019] db:config exp
Date:2022-03-23T10:22:05.342+03:00 cmd:{ find: \"collections\", filter: { _id: \"config.system.sessions\" }, readConcern: { level: \"majority\", afterOpTime: { ts: Timestamp(1648020095, 97),
 t: 93 } }, limit: 1, maxTimeMS: 30000 }"}}}}
{"t":{"$date":"2022-03-23T10:22:05.342+03:00"},"s":"I",  "c":"SHARDING", "id":22740,   "ctx":"ConfigServerCatalogCacheLoader-43813","msg":"Operation timed out","attr":{"error":{"code":202,"codeName":"NetworkInterfa
ceExceededTimeLimit","errmsg":"Request 17875551933 timed out, deadline was 2022-03-23T10:22:05.342+03:00, op was RemoteCommand 17875551933 -- target:[csrs-host03:27019] db:config expDate:2022-
03-23T10:22:05.342+03:00 cmd:{ find: \"collections\", filter: { _id: \"config.system.sessions\" }, readConcern: { level: \"majority\", afterOpTime: { ts: Timestamp(1648020095, 97), t: 93 } }, limit: 1, maxTimeMS: 3
0000 }"}}}
{"t":{"$date":"2022-03-23T10:22:05.342+03:00"},"s":"I",  "c":"SH_REFR",  "id":24103,   "ctx":"ConfigServerCatalogCacheLoader-43813","msg":"Error refreshing cached collection","attr":{"namespace":"config.system.sess
ions","durationMillis":30000,"error":"NetworkInterfaceExceededTimeLimit: Request 17875551933 timed out, deadline was 2022-03-23T10:22:05.342+03:00, op was RemoteCommand 17875551933 -- target:[csrs-host03:27019] db:co
nfig expDate:2022-03-23T10:22:05.342+03:00 cmd:{ find: \"collections\", filter: { _id: \"config.system.sessions\" }, readConcern: { level: \"majority\", afterOpTime: { ts: Timestamp(16480200
95, 97), t: 93 } }, limit: 1, maxTimeMS: 30000 }"}}
{"t":{"$date":"2022-03-23T10:22:05.342+03:00"},"s":"I",  "c":"CONTROL",  "id":20714,   "ctx":"LogicalSessionCacheRefresh","msg":"Failed to refresh session cache, will try again at the next refresh interval","attr":
{"error":"NetworkInterfaceExceededTimeLimit: Request 17875551933 timed out, deadline was 2022-03-23T10:22:05.342+03:00, op was RemoteCommand 17875551933 -- target:[csrs-host03:27019] db:config
 expDate:2022-03-23T10:22:05.342+03:00 cmd:{ find: \"collections\", filter: { _id: \"config.system.sessions\" }, readConcern: { level: \"majority\", afterOpTime: { ts: Timestamp(1648020095, 97), t: 93 } }, limit: 1
, maxTimeMS: 30000 }"}}
{"t":{"$date":"2022-03-23T10:22:05.343+03:00"},"s":"I",  "c":"CONTROL",  "id":20712,   "ctx":"LogicalSessionCacheReap","msg":"Sessions collection is not set up; waiting until next sessions reap interval","attr":{"e
rror":"NetworkInterfaceExceededTimeLimit: Request 17875551933 timed out, deadline was 2022-03-23T10:22:05.342+03:00, op was RemoteCommand 17875551933 -- target:[csrs-host03:27019] db:config ex
pDate:2022-03-23T10:22:05.342+03:00 cmd:{ find: \"collections\", filter: { _id: \"config.system.sessions\" }, readConcern: { level: \"majority\", afterOpTime: { ts: Timestamp(1648020095, 97), t: 93 } }, limit: 1, m
axTimeMS: 30000 }"}}
{"t":{"$date":"2022-03-23T10:22:05.343+03:00"},"s":"I",  "c":"NETWORK",  "id":4333213, "ctx":"ReplicaSetMonitor-TaskExecutor","msg":"RSM Topology Change","attr":{"replicaSet":"CSRS","newTopologyDescription":"{ i
d: \"55ac97ce-94b5-4a0c-a803-667c9b8a6a12\", topologyType: \"ReplicaSetWithPrimary\", servers: { csrs-host01:27019: { address: \"csrs-host01:27019\", topologyVersion: { p
rocessId: ObjectId('6239b2372484be1ba5c75931'), counter: 6 }, roundTripTime: 790, lastWriteDate: new Date(1648020121000), opTime: { ts: Timestamp(1648020121, 4454), t: 93 }, type: \"RSPrimary\", minWireVersion: 9,
maxWireVersion: 9, me: \"csrs-host01:27019\", setName: \"CSRS\", setVersion: 85388, electionId: ObjectId('7fffffff000000000000005d'), primary: \"csrs-host01:27019\", l
astUpdateTime: new Date(1648020122104), logicalSessionTimeoutMinutes: 30, hosts: { 0: \"csrs-host01:27019\", 1: \"csrs-host02:27019\", 2: \"csrs-host03:27019\" }, arbiters: {}, passives: {} }, csrs-host02:27019: { 
address: \"csrs-host02:27019\", topologyVersion: { processId: ObjectId('6239b09a2c8c5bb2910a8574'), coun
ter: 8 }, roundTripTime: 1338, lastWriteDate: new Date(1648020120000), opTime: { ts: Timestamp(1648020120, 1), t: 93 }, type: \"RSSecondary\", minWireVersion: 9, maxWireVersion: 9, me: \"csrs-host02:27019\", setName:
 \"CSRS\", setVersion: 85388, primary: \"csrs-host01:27019\", lastUpdateTime: new Date(1648020121794), logicalSessionTimeoutMinutes: 30, hosts: { 0: \"csrs-host01:27019\", 1: \"csrs-host02:27019\", 2: \"csrs-host
 03:27019\" }, arbiters: {}, passives: {} }, csrs-host03:27019: { address: \"csrs-host03:27019\", type: \"Unknown\", minWireVersion: 0, maxWireVersion: 0, lastUpdateTime: new Date(-9223372036854775808), hosts: {}, 
 arbiters: {}, passives: {} } }, logicalSessionTimeoutMinutes: 30, setName: \"CSRS\", compatible: true, maxSetVersion: 85388, maxElectionId: ObjectId('7fffffff000000000000005d') }","previousTopologyDescription":"
 { id: \"55ac97ce-94b5-4a0c-a803-667c9b8a6a12\", topologyType: \"ReplicaSetWithPrimary\", servers: { csrs-host01:27019: { address: \"csrs-host01:27019\", topologyVersion: { processId: ObjectId('6239b2372484be1ba5c75931'), counter
: 6 }, roundTripTime: 790, lastWriteDate: new Date(1648020121000), opTime: { ts: Timestamp(1648020121, 4454), t: 93 }, type: \"RSPrimary\", minWireVersion: 9, maxWireVersion: 9, me: \"ccsrs-host01:27019\", setName: 
\"CSRS\", setVersion: 85388, electionId: ObjectId('7fffffff000000000000005d'), primary: \"csrs-host01:27019\", lastUpdateTime: new Date(1648020122104), logicalSessionT
imeoutMinutes: 30, hosts: { 0: \"csrs-host01:27019\", 1: \"csrs-host02:27019\", 2: \"csrs-host03:27019\" }, arbiters: {}, passives: {} }, csrs-host02:27019: { address: \"csrs-host02:27019\", topologyVersion: 
{ processId: ObjectId('6239b09a2c8c5bb2910a8574'), counter: 8 }, roundTripTime: 1338, lastWriteDate: new Date(1648020120000), opTime: { ts: Timestamp(1648020120, 1), t: 93 }, type: \"RSSecondary\", minWireVersion: 9, 
maxWireVersion: 9, me: \"csrs-host02:27019\", setName: \"CSRS\", setVersion: 85388, primary: \"csrs-host01:27019\", lastUpdateTime: new Date(1648020121794), logicalSessionTimeoutMinutes: 30, hosts: { 0: \"csrs-host01:27019\", 
1: \"csrs-host02:27019\", 2: \"csrs-host03:27019\" }, arbiters: {}, passives: {} }, csrs-host03:27019: { address: \"csrs-host03:27019\", topologyVersion: { processId: ObjectId('6239aff05d94a01a1bbb0e5c'), counter: 5 }, 
roundTripTime: 1540, lastWriteDate: new Date(1648020094000), opTime: { ts: Timestamp(1648020094, 1986), t: 93 }, type: \"RSSecondary\", minWireVersion: 9, maxWireVersion: 9, me: \"csrs-host03:27019\", setName: \"CSRS\", 
setVersion: 85388, primary: \"csrs-host01:27019\", lastUpdateTime: new Date(1648020118247), logicalSessionTimeoutMinutes: 30, hosts: { 0: \"csrs-host01:27019\", 1: \"csrs-host02:27019\", 2: \"csrs-host03:27019\" }, arbiters: {}, 
passives: {} } }, logicalSessionTimeoutMinutes: 30, setName: \"CSRS\", compatible: true, maxSetVersion: 85388, maxElectionId: ObjectId('7fffffff000000000000005d') }"}}

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.