An exception occurs while running collstats: "BSON field 'collStats.indexDetails' is an unknown field."
This a compatibility issue with MongoDB 7.0.
An error similar to the following may appear in the MongoDB agent log file.
WARN [SMA-MongoDB-pool-1-thread-42804] com.sma.mongodb.collections.ReplOplogCollection - Failed to collect ReplOplogCollection. Waiting 5 seconds to retry: Command failed with error 40415 (Location40415): 'BSON field 'collStats.indexDetails' is an unknown field.' on SERVERNAME.COMPANY.COM:PORT. The full response is {"ok": 0.0, "errmsg": "BSON field 'collStats.indexDetails' is an unknown field.", "code": 40415, "codeName": "Location40415", "$clusterTime": {"clusterTime": {"$timestamp": {"t": 1709137746, "i": 1}}, "signature": {"hash": {"$binary": "1UwtLrvWZn0ZruJrYnSPa3KLhXI=", "$type": "00"}, "keyId": {"$numberLong": "7338761716177567749"}}}, "operationTime": {"$timestamp": {"t": 1709137746, "i": 1}}}
In versions 6.2 and later use the $collStats
aggregation stage.
WORKAROUND
None
STATUS
This issue was logged as defect FOGMONGO-457 and has been fixed in the 7.2.1.25 and higher releases of the MongoDB cartridge.
© 2025 Quest Software Inc. ALL RIGHTS RESERVED. Terms of Use Privacy Cookie Preference Center