[SERVER-53635] Add document schema validation to validate() command Created: 07/Jan/21  Updated: 05/Feb/24  Resolved: 03/Jun/21

Status: Closed
Project: Core Server
Component/s: Diagnostics
Affects Version/s: None
Fix Version/s: 5.0.0-rc2, 5.1.0-rc0

Type: Improvement Priority: Major - P3
Reporter: Dave Cuthbert (Inactive) Assignee: Gregory Wlodarek
Resolution: Fixed Votes: 0
Labels: execution_intern, newgrad
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Backports
Depends
Documented
is documented by DOCS-14535 Investigate changes in SERVER-53635: ... Closed
Duplicate
is duplicated by SERVER-54636 Update the validate cmd logic to veri... Closed
Related
is related to SERVER-60708 db.collection.validate() returns `nIn... Closed
is related to SERVER-80177 validate() should not return valid:fa... Closed
Backwards Compatibility: Fully Compatible
Backport Requested:
v5.0
Sprint: Execution Team 2021-06-14
Participants:

 Description   

The validate() command works on the collection level to provide certain consistency checks. Validation is also available for document schemas, but document checks are not currently a part of the validate() checks. 

 

It would be helpful to include document consistency checks to the BSON and index validations.    



 Comments   
Comment by Vivian Ge (Inactive) [ 06/Oct/21 ]

Updating the fixversion since branching activities occurred yesterday. This ticket will be in rc0 when it’s been triggered. For more active release information, please keep an eye on #server-release. Thank you!

Comment by Githook User [ 10/Jun/21 ]

Author:

{'name': 'Gregory Wlodarek', 'email': 'gregory.wlodarek@mongodb.com', 'username': 'GWlodarek'}

Message: SERVER-53635 The validate command reports documents not adhering to collection schema rules

(cherry picked from commit 898d47a64a9b98e018308bbcc2329b65702d9b3f)
Branch: v5.0
https://github.com/mongodb/mongo/commit/9e83424b5a6f343b7b244088d1cc687ef7e1d6a8

Comment by Githook User [ 03/Jun/21 ]

Author:

{'name': 'Gregory Wlodarek', 'email': 'gregory.wlodarek@mongodb.com', 'username': 'GWlodarek'}

Message: SERVER-53635 The validate command reports documents not adhering to collection schema rules
Branch: master
https://github.com/mongodb/mongo/commit/898d47a64a9b98e018308bbcc2329b65702d9b3f

Generated at Thu Feb 08 05:31:27 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.