[SERVER-74632] Log $collStats output when a collection fails validation Created: 03/Mar/23  Updated: 29/Oct/23  Resolved: 07/Mar/23

Status: Closed
Project: Core Server
Component/s: None
Affects Version/s: None
Fix Version/s: 7.0.0-rc0, 4.4.20, 5.0.16, 6.0.6, 6.3.0-rc2

Type: Improvement Priority: Major - P3
Reporter: Dan Larkin-York Assignee: Dianna Hohensee (Inactive)
Resolution: Fixed Votes: 0
Labels: validation-logging
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Backports
Problem/Incident
Related
related to SERVER-80557 Log $collStats output when a collecti... Backlog
is related to SERVER-74895 Expect command errors in validation w... Closed
Assigned Teams:
Storage Execution
Backwards Compatibility: Fully Compatible
Backport Requested:
v6.3, v6.0, v5.0, v4.4
Sprint: Execution Team 2023-03-20
Participants:
Linked BF Score: 18

 Description   

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.



 Comments   
Comment by Githook User [ 17/Mar/23 ]

Author:

{'name': 'Dianna Hohensee', 'email': 'dianna.hohensee@mongodb.com', 'username': 'DiannaHohensee'}

Message: SERVER-74632 Log aggregation results when validate commands fails due to a validation error

(cherry picked from commit 9b345f40ac74ea03eee77100e2244b9dc4bd6ccb)
Branch: v4.4
https://github.com/mongodb/mongo/commit/b399b1eef6606fd3f3f0a4e28ccb405fcfec4e41

Comment by Githook User [ 16/Mar/23 ]

Author:

{'name': 'Dianna Hohensee', 'email': 'dianna.hohensee@mongodb.com', 'username': 'DiannaHohensee'}

Message: SERVER-74632 Log aggregation results when validate commands fails due to a validation error

(cherry picked from commit 9b345f40ac74ea03eee77100e2244b9dc4bd6ccb)
Branch: v6.3
https://github.com/mongodb/mongo/commit/2c684d00b9f9695efda211d745ec5c461dc49e95

Comment by Githook User [ 16/Mar/23 ]

Author:

{'name': 'Dianna Hohensee', 'email': 'dianna.hohensee@mongodb.com', 'username': 'DiannaHohensee'}

Message: SERVER-74632 Log aggregation results when validate commands fails due to a validation error

(cherry picked from commit 9b345f40ac74ea03eee77100e2244b9dc4bd6ccb)
Branch: v6.0
https://github.com/mongodb/mongo/commit/22867aec12125c74a17601b050c47e01440d8fd2

Comment by Githook User [ 16/Mar/23 ]

Author:

{'name': 'Dianna Hohensee', 'email': 'dianna.hohensee@mongodb.com', 'username': 'DiannaHohensee'}

Message: SERVER-74632 Log aggregation results when validate commands fails due to a validation error

(cherry picked from commit 9b345f40ac74ea03eee77100e2244b9dc4bd6ccb)
Branch: v5.0
https://github.com/mongodb/mongo/commit/45b1dcb60b936fc16ae7c60ac3740a684d019b0a

Comment by Githook User [ 07/Mar/23 ]

Author:

{'name': 'Dianna Hohensee', 'email': 'dianna.hohensee@mongodb.com', 'username': 'DiannaHohensee'}

Message: SERVER-74632 Log aggregation results when validate commands fails due to a validation error
Branch: master
https://github.com/mongodb/mongo/commit/9b345f40ac74ea03eee77100e2244b9dc4bd6ccb

Generated at Thu Feb 08 06:28:01 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.