Uploaded image for project: 'Core Server'
  1. Core Server
  2. SERVER-85279

Don't run the FTDC collection stats collector on arbiters

    • Type: Icon: Bug Bug
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 8.1.0-rc0
    • Affects Version/s: 7.0.4
    • Component/s: None
    • Labels:
    • Service Arch
    • Fully Compatible
    • ALL
    • v8.0, v7.0
    • Service Arch 2024-04-29, Service Arch 2024-05-13

      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

            Assignee:
            ronald.steinke@mongodb.com Ronald Steinke
            Reporter:
            wernfried.domscheit@sunrise.net Wernfried Domscheit
            Votes:
            4 Vote for this issue
            Watchers:
            13 Start watching this issue

              Created:
              Updated:
              Resolved: