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

The sharded `collStats` command pollutes the logs with `Unexpected field for mongos collStats`

    • Type: Icon: Bug Bug
    • Resolution: Unresolved
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: 5.0.0-rc0
    • Component/s: None
    • Cluster Scalability
    • ALL

      Looks like there are a number of fields which definitely need to be ignored (those starting with `$`) and then several ones, which need to be considered whether they should be aggregated or not:

      [j0:s0] | 2021-06-07T17:06:52.097+00:00 I  COMMAND  22749   [conn318] "Unexpected field for mongos collStats","attr":{"fieldName":"freeStorageSize"}
      [j0:s0] | 2021-06-07T17:06:52.098+00:00 I  COMMAND  22749   [conn318] "Unexpected field for mongos collStats","attr":{"fieldName":"indexBuilds"}
      [j0:s0] | 2021-06-07T17:06:52.098+00:00 I  COMMAND  22749   [conn318] "Unexpected field for mongos collStats","attr":{"fieldName":"scaleFactor"}
      [j0:s0] | 2021-06-07T17:06:52.098+00:00 I  COMMAND  22749   [conn318] "Unexpected field for mongos collStats","attr":{"fieldName":"$gleStats"}
      [j0:s0] | 2021-06-07T17:06:52.098+00:00 I  COMMAND  22749   [conn318] "Unexpected field for mongos collStats","attr":{"fieldName":"lastCommittedOpTime"}
      [j0:s0] | 2021-06-07T17:06:52.098+00:00 I  COMMAND  22749   [conn318] "Unexpected field for mongos collStats","attr":{"fieldName":"$clusterTime"}
      [j0:s0] | 2021-06-07T17:06:52.098+00:00 I  COMMAND  22749   [conn318] "Unexpected field for mongos collStats","attr":{"fieldName":"$configTime"}
      [j0:s0] | 2021-06-07T17:06:52.098+00:00 I  COMMAND  22749   [conn318] "Unexpected field for mongos collStats","attr":{"fieldName":"$topologyTime"}
      [j0:s0] | 2021-06-07T17:06:52.098+00:00 I  COMMAND  22749   [conn318] "Unexpected field for mongos collStats","attr":{"fieldName":"operationTime"}
      [j0:s0] | 2021-06-07T17:06:52.101+00:00 I  COMMAND  22749   [conn318] "Unexpected field for mongos collStats","attr":{"fieldName":"freeStorageSize"}
      [j0:s0] | 2021-06-07T17:06:52.101+00:00 I  COMMAND  22749   [conn318] "Unexpected field for mongos collStats","attr":{"fieldName":"indexBuilds"}
      [j0:s0] | 2021-06-07T17:06:52.101+00:00 I  COMMAND  22749   [conn318] "Unexpected field for mongos collStats","attr":{"fieldName":"scaleFactor"}
      

            Assignee:
            backlog-server-cluster-scalability [DO NOT USE] Backlog - Cluster Scalability
            Reporter:
            kaloian.manassiev@mongodb.com Kaloian Manassiev
            Votes:
            1 Vote for this issue
            Watchers:
            11 Start watching this issue

              Created:
              Updated: