[SERVER-67520] Add `checkBSONConsistency` option to the validate command Created: 24/Jun/22  Updated: 29/Oct/23  Resolved: 12/Jul/22

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

Type: Task Priority: Major - P3
Reporter: Yuhong Zhang Assignee: Yuhong Zhang
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Backwards Compatibility: Fully Compatible
Sprint: Execution Team 2022-07-11, Execution Team 2022-07-25
Participants:

 Description   

We will add a new option called “checkBSONConsistency” to the validate command, which will run more thorough checks on BSON documents in addition to the current validations on BSON documents. The syntax is as follows:

{validate: collName, checkBSONConsistency: true}

The checks will also be included in the foreground full validation mode. The new option can be specified with {full: true}, {enforceFastCount: true}, and {background: true}, but cannot be used together with {repair: true} or {metadata: true}. 



 Comments   
Comment by Githook User [ 11/Jul/22 ]

Author:

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

Message: SERVER-67520 Add `checkBSONConsistency` option to the validate command
Branch: master
https://github.com/mongodb/mongo/commit/eaaa79c5750585d3cee630bf826d30063db1be28

Comment by Githook User [ 11/Jul/22 ]

Author:

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

Message: SERVER-67520 Update validation comments
Branch: master
https://github.com/mongodb/mongo/commit/6048d2275df845e397e46dcdf47c960cc302d7e7

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