We should log the collection stats when a collection fails validation. These stats include a lot of useful diagnostic information that might prove useful.
Note, the collStats command has been deprecated, so we should use the $collStats aggregation stage instead.
- is related to
-
SERVER-74895 Expect command errors in validation when querying $collStats, and improve the error message
- Closed
- related to
-
SERVER-80557 Log $collStats output when a collection fails dbCheck
- Backlog