[SERVER-65078] 'validate' to report non-compliant documents as errors when the validation level is 'error' in testing Created: 30/Mar/22  Updated: 14/Feb/23  Resolved: 18/Nov/22

Status: Closed
Project: Core Server
Component/s: None
Affects Version/s: None
Fix Version/s: None

Type: Task Priority: Major - P3
Reporter: Gregory Wlodarek Assignee: Yuhong Zhang
Resolution: Won't Do Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Related
related to SERVER-60708 db.collection.validate() returns `nIn... Closed
related to SERVER-71475 Complete TODO listed in SERVER-65078 Closed
Sprint: Execution Team 2022-07-11, Execution Team 2022-07-25, Execution Team 2022-08-08, Execution Team 2022-09-05, Execution Team 2022-09-19, Execution Team 2022-10-17, Execution Team 2022-10-31, Execution Team 2022-11-14
Participants:

 Description   

The validate command will treat all documents failing schema validation as warnings even when the validation level is error while the testing proctor is enabled. We should treat these as errors and fix any failing tests.

There's a TODO in the codebase.



 Comments   
Comment by Githook User [ 18/Nov/22 ]

Author:

{'name': 'Yuhong Zhang', 'email': 'yuhong.zhang@mongodb.com', 'username': 'YuhongZhang98'}

Message: Revert "SERVER-65078 Report schema violations as errors when the validation level is 'error' in testing"

This reverts commit d63bf9dfa20c1bafaa87a320cc5f4d4c2c401742.
Branch: v6.2
https://github.com/mongodb/mongo/commit/fc05e34ea43d117d1ee05742a96a55b334d8e6ab

Comment by Githook User [ 17/Nov/22 ]

Author:

{'name': 'Yuhong Zhang', 'email': 'yuhong.zhang@mongodb.com', 'username': 'YuhongZhang98'}

Message: Revert "SERVER-65078 Report schema violations as errors when the validation level is 'error' in testing"

This reverts commit d63bf9dfa20c1bafaa87a320cc5f4d4c2c401742.
Branch: master
https://github.com/mongodb/mongo/commit/bae80e387381e90ede62d74f6901cb8befd33a61

Comment by Githook User [ 08/Nov/22 ]

Author:

{'name': 'Yuhong Zhang', 'email': 'yuhong.zhang@mongodb.com', 'username': 'YuhongZhang98'}

Message: SERVER-65078 Report schema violations as errors when the validation level is 'error' in testing
Branch: master
https://github.com/mongodb/mongo/commit/d63bf9dfa20c1bafaa87a320cc5f4d4c2c401742

Comment by Githook User [ 08/Nov/22 ]

Author:

{'name': 'Yuhong Zhang', 'email': 'yuhong.zhang@mongodb.com', 'username': 'YuhongZhang98'}

Message: SERVER-65078 Remove the validator at the end of the test to avoid validation error
Branch: master
https://github.com/10gen/mongo-enterprise-modules/commit/72fbcbd9e9b96465f6999fcd05b8c5bcdb72845c

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