I recently updated to MongoDB version 7. I am using a sharded cluster with PSA (PRIMARY-SECONDARY-ARBITER) shards. The arbiter not is constantly writing every second this warning into to log:
{
"t": {
"$date": "2024-01-17T07:47:12.004+01:00"
},
"s": "W",
"c": "QUERY",
"id": 23799,
"ctx": "ftdc",
"msg": "Aggregate command executor error",
"attr": {
"error": {
"code": 26,
"codeName": "NamespaceNotFound",
"errmsg": "Unable to retrieve storageStats in $collStats stage :: caused by :: Collection [local.oplog.rs] not found."
},
"stats": {},
"cmd": {
"aggregate": "oplog.rs",
"cursor": {},
"pipeline": [
{
"$collStats": {
"storageStats": {
"waitForLock": false,
"numericOnly": true
}
}
}
],
"$db": "local"
}
}
}
It does not have a big impact, because the ARBITER does not store any data. However, it is filling up the logfile, I get every day a logfile of 55MB.
I don't think a permanent warning should be part of a normally running mongod process
- related to
-
SERVER-88860 $collStats does not match behavior of deprecated collStats command when called against the oplog
-
- Open
-
-
SERVER-71838 Remove use of deprecated collStats command in ftdc directory
-
- Closed
-
-
SERVER-91159 Delay FTDC-on-arbiter log spam filtering until the node knows it's an arbiter.
-
- Closed
-