Is everyone getting the error Dropping all pooled connections recurrently in your MongoDB replicaset configurations ?
If so, can I ignore this error ?
I am not sure about the root cause of this error. But, I have enabled log-level of 5 and found the below information. For some reason, the connection pool used by mongo01 VM to connect to mongo02 and mongo03 expire and this is causing the above error message.
{"t":{"$date":"2021-08-06T11:34:22.860+00:00"},"s":"D4", "c":"CONNPOOL", "id":22578, "ctx":"MirrorMaestro","msg":"Updating pool controller","attr":{"hostAndPort":"mongo02.abc.com:27017","poolState":"{ requests: 0, ready: 1, pending: 0, active: 0, isExpired: true }"}}
{"t":{"$date":"2021-08-06T11:34:22.860+00:00"},"s":"D2", "c":"CONNPOOL", "id":22571, "ctx":"MirrorMaestro","msg":"Delistinng connection pool","attr":{"hostAndPort":"mongo02.abc.com:27017"}}
{"t":{"$date":"2021-08-06T11:34:22.860+00:00"},"s":"I", "c":"CONNPOOL", "id":22572, "ctx":"MirrorMaestro","msg":"Dropping all pooled connections","attr":{"hostAndPort":"mongo02.abc.com:27017","error":"ShutdownInProgress: Pool for mongo02.abc.com:27017 has expired."}}
{"t":{"$date":"2021-08-06T11:34:22.869+00:00"},"s":"D4", "c":"CONNPOOL", "id":22570, "ctx":"MirrorMaestro","msg":"Triggered refresh timeout","attr":{"hostAndPort":"mongo02.abc.com:27017"}}
{"t":{"$date":"2021-08-06T11:34:22.869+00:00"},"s":"D4", "c":"CONNPOOL", "id":22579, "ctx":"MirrorMaestro","msg":"Pool is dead","attr":{"hostAndPort":"mongo02.abc.com:27017"}}
{"t":{"$date":"2021-08-06T11:34:22.933+00:00"},"s":"D4", "c":"CONNPOOL", "id":22578, "ctx":"ReplNetwork","msg":"Updating pool controller","attr":{"hostAndPort":"mongo03.abc.com:27017","poolState":"{ requests: 0, ready: 1, pending: 0, active: 0, isExpired: false }"}}
{"t":{"$date":"2021-08-06T11:34:22.933+00:00"},"s":"D4", "c":"CONNPOOL", "id":22575, "ctx":"ReplNetwork","msg":"Comparing connection state to controls","attr":{"hostAndPort":"mongo03.abc.com:27017","poolControls":"{ maxPending: 2, target: 1, }"}}
{"t":{"$date":"2021-08-06T11:34:22.933+00:00"},"s":"D4", "c":"CONNPOOL", "id":22578, "ctx":"ReplNetwork","msg":"Updating pool controller","attr":{"hostAndPort":"mongo02.abc.com:27017","poolState":"{ requests: 0, ready: 1, pending: 0, active: 0, isExpired: false }"}}
{"t":{"$date":"2021-08-06T11:34:22.933+00:00"},"s":"D4", "c":"CONNPOOL", "id":22575, "ctx":"ReplNetwork","msg":"Comparing connection state to controls","attr":{"hostAndPort":"mongo02.abc.com:27017","poolControls":"{ maxPending: 2, target: 1, }"}}
{"t":{"$date":"2021-08-06T12:03:14.953+00:00"},"s":"D4", "c":"CONNPOOL", "id":22578, "ctx":"ReplNetwork","msg":"Updating pool controller","attr":{"hostAndPort":"mongo02.abc.com:27017","poolState":"{ requests: 0, ready: 1, pending: 0, active: 0, isExpired: false }"}}
{"t":{"$date":"2021-08-06T12:03:14.953+00:00"},"s":"D4", "c":"CONNPOOL", "id":22575, "ctx":"ReplNetwork","msg":"Comparing connection state to controls","attr":{"hostAndPort":"mongo02.abc.com:27017","poolControls":"{ maxPending: 2, target: 1, }"}}
{"t":{"$date":"2021-08-06T12:03:14.953+00:00"},"s":"D4", "c":"CONNPOOL", "id":22578, "ctx":"ReplNetwork","msg":"Updating pool controller","attr":{"hostAndPort":"mongo03.abc.com:27017","poolState":"{ requests: 0, ready: 1, pending: 0, active: 0, isExpired: false }"}}
{"t":{"$date":"2021-08-06T12:03:14.953+00:00"},"s":"D4", "c":"CONNPOOL", "id":22575, "ctx":"ReplNetwork","msg":"Comparing connection state to controls","attr":{"hostAndPort":"mongo03.abc.com:27017","poolControls":"{ maxPending: 2, target: 1, }"}}
{"t":{"$date":"2021-08-06T12:03:15.061+00:00"},"s":"D4", "c":"CONNPOOL", "id":22559, "ctx":"ReplCoord-99839","msg":"Using existing idle connection","attr":{"hostAndPort":"mongo02.abc.com:27017"}}
{"t":{"$date":"2021-08-06T12:03:15.061+00:00"},"s":"D2", "c":"ASIO", "id":4646300, "ctx":"ReplCoord-99839","msg":"Sending request","attr":{"requestId":17203576,"target":"mongo02.abc.com:27017"}}
{"t":{"$date":"2021-08-06T12:03:15.061+00:00"},"s":"D2", "c":"ASIO", "id":4630601, "ctx":"ReplCoord-99839","msg":"Request acquired a connection","attr":{"requestId":17203576,"target":"mongo02.abc.com:27017"}}
{"t":{"$date":"2021-08-06T12:03:15.061+00:00"},"s":"D4", "c":"CONNPOOL", "id":22578, "ctx":"ReplNetwork","msg":"Updating pool controller","attr":{"hostAndPort":"mongo02.abc.com:27017","poolState":"{ requests: 0, ready: 0, pending: 0, active: 1, isExpired: false }"}}
{"t":{"$date":"2021-08-06T12:03:15.061+00:00"},"s":"D3", "c":"NETWORK", "id":22925, "ctx":"ReplCoord-99839","msg":"Compressing message","attr":{"compressor":"snappy"}}
{"t":{"$date":"2021-08-06T12:03:15.061+00:00"},"s":"D4", "c":"CONNPOOL", "id":22575, "ctx":"ReplNetwork","msg":"Comparing connection state to controls","attr":{"hostAndPort":"mongo02.abc.com:27017","poolControls":"{ maxPending: 2, target: 1, }"}}
{"t":{"$date":"2021-08-06T12:03:15.061+00:00"},"s":"D3", "c":"EXECUTOR", "id":23107, "ctx":"ReplCoord-99839","msg":"Not reaping this thread","attr":{"nextThreadRetirementDate":{"$date":"2021-08-06T12:03:32.799Z"}}}
{"t":{"$date":"2021-08-06T12:03:15.063+00:00"},"s":"D3", "c":"REPL", "id":21296, "ctx":"WTJournalFlusher","msg":"Setting oplog truncate after point","attr":{"oplogTruncateAfterPoint":{"":{"$timestamp":{"t":1628251392,"i":1}}}}}
{"t":{"$date":"2021-08-06T12:03:15.063+00:00"},"s":"D3", "c":"STORAGE", "id":22414, "ctx":"WTJournalFlusher","msg":"WT begin_transaction","attr":{"snapshotId":868767029,"readSource":"kUnset"}}
{"t":{"$date":"2021-08-06T12:03:15.063+00:00"},"s":"D3", "c":"STORAGE", "id":22413, "ctx":"WTJournalFlusher","msg":"WT rollback_transaction for snapshot id {getSnapshotId_toNumber}","attr":{"getSnapshotId_toNumber":868767035}}
{"t":{"$date":"2021-08-06T12:03:15.063+00:00"},"s":"D3", "c":"STORAGE", "id":22414, "ctx":"WTJournalFlusher","msg":"WT begin_transaction","attr":{"snapshotId":868767035,"readSource":"kUnset"}}
{"t":{"$date":"2021-08-06T12:03:15.063+00:00"},"s":"D3", "c":"STORAGE", "id":22413, "ctx":"WTJournalFlusher","msg":"WT rollback_transaction for snapshot id {getSnapshotId_toNumber}","attr":{"getSnapshotId_toNumber":868767036}}
{"t":{"$date":"2021-08-06T12:03:15.063+00:00"},"s":"D4", "c":"STORAGE", "id":22419, "ctx":"WTJournalFlusher","msg":"flushed journal"}
{"t":{"$date":"2021-08-06T12:03:15.063+00:00"},"s":"D3", "c":"NETWORK", "id":22927, "ctx":"ReplNetwork","msg":"Decompressing message","attr":{"compressor":"snappy"}}
{"t":{"$date":"2021-08-06T12:03:15.063+00:00"},"s":"D4", "c":"CONNPOOL", "id":22569, "ctx":"ReplNetwork","msg":"Returning ready connection","attr":{"hostAndPort":"mongo02.abc.com:27017"}}