...
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
JIRAUSER1278068 commented on Tue, 4 Jun 2024 15:03:28 +0000: Issue was trying to disable the logging too early in boot, before the node knows it's an arbiter. Will continue the fix in SERVER-91159. JIRAUSER1278127 commented on Mon, 3 Jun 2024 05:52:05 +0000: I have installed version 7.0.11, it is still spamming the logs. xgen-internal-githook commented on Mon, 6 May 2024 17:49:39 +0000: Author: {'name': 'Ronald Steinke', 'email': '167128994+rsteinkeX@users.noreply.github.com', 'username': 'rsteinkeX'} Message: SERVER-85279 Don't collect collection stats on arbiter (#21354) GitOrigin-RevId: d1a1f26ef28b0c9df984c7259b7362bf0e6e017e Branch: v8.0 https://github.com/mongodb/mongo/commit/eaa8c818d627c82e46c4baae499e523c546380ac xgen-internal-githook commented on Mon, 6 May 2024 17:17:45 +0000: Author: {'name': 'Ronald Steinke', 'email': '167128994+rsteinkeX@users.noreply.github.com', 'username': 'rsteinkeX'} Message: SERVER-85279 Don't collect collection stats on arbiter (#21354) GitOrigin-RevId: 150564beae43bf0d881b61f353c739a7e193bd83 Branch: v7.0 https://github.com/mongodb/mongo/commit/6b36afc1a49725fe20866d5e9a2fa9dc30ea670f xgen-internal-githook commented on Fri, 26 Apr 2024 00:29:36 +0000: Author: {'name': 'Ronald Steinke', 'email': '167128994+rsteinkeX@users.noreply.github.com', 'username': 'rsteinkeX'} Message: SERVER-85279 Don't collect collection stats on arbiter (#21354) GitOrigin-RevId: fc3f18595eb576586473e1e88edcba8fb4d8cb81 Branch: master https://github.com/mongodb/mongo/commit/d6fb191b7876cfcdcd1f24c8bc762dd7021a46cd JIRAUSER1265262 commented on Wed, 17 Jan 2024 20:19:09 +0000: Hi! Thanks for your report. This appears to be being called internally via ftdc (diagnostic data capture) which is leveraging $collStats' output. I'll pass this to the relevant team for a further look here.