Mongos collstats doesn't know about: XXX

Hi,

We have mongoDB version v4.2.1. We have disk fullage errors due to many same log records that mentioned below.

Why we are getting these warnings and how to solve it?

Thank you, Tayfun.

2022-01-25T18:16:41.245+0300 I  COMMAND  [conn559] mongos collstats doesn't know about: indexBuilds

2022-01-25T18:16:41.245+0300 I  COMMAND  [conn559] mongos collstats doesn't know about: scaleFactor

2022-01-25T18:16:41.245+0300 I  COMMAND  [conn559] mongos collstats doesn't know about: $gleStats

2022-01-25T18:16:41.245+0300 I  COMMAND  [conn559] mongos collstats doesn't know about: lastCommittedOpTime

2022-01-25T18:16:41.245+0300 I  COMMAND  [conn559] mongos collstats doesn't know about: $configServerState

2022-01-25T18:16:41.245+0300 I  COMMAND  [conn559] mongos collstats doesn't know about: $clusterTime

2022-01-25T18:16:41.245+0300 I  COMMAND  [conn559] mongos collstats doesn't know about: operationTime

There is a logging BUG for older versions but seems to affect new versions too
In your case it is informational(I) messages

https://jira.mongodb.org/browse/SERVER-36801

Hi @Ramachandra_Tummala , Thank you for your answer. Is there any way to close these logs ?

Thank you, Tayfun

Hi @tayfun_yalcinkaya,

You mentioned your MongoDB version is 4.2.1, but the SERVER-36801 issue noted by @Ramachandra_Tummala only appears to affect mongos older than 4.0.x.

Can you confirm that all your mongos processes are also 4.2? If they are on older versions, you should definitely upgrade them.

I also strongly recommend upgrading from 4.2.1 (released Oct 2019) to a more recent version of MongoDB 4.2. The latest 4.2.x minor release is currently 4.2.18, released on Jan 6, 2022. Minor releases include important bug fixes & stability improvements and do not introduce any backward-incompatible changes: Release Notes for MongoDB 4.2.

Regards,
Stennie