[SERVER-78451] Add bson validation to dbCheck Created: 26/Jun/23  Updated: 29/Oct/23  Resolved: 03/Oct/23

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

Type: Task Priority: Major - P3
Reporter: Xuerui Fa Assignee: Xuerui Fa
Resolution: Fixed Votes: 0
Labels: auto-reverted, pm-855-milestone-2
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Backports
Depends
is depended on by SERVER-78461 Expose BSON validation modes in dbCheck Closed
Problem/Incident
Backwards Compatibility: Fully Compatible
Backport Requested:
v7.1
Sprint: Repl 2023-07-24, Repl 2023-08-07, Repl 2023-08-21, Repl 2023-09-04, Repl 2023-09-18, Repl 2023-10-02, Repl 2023-10-16
Participants:
Linked BF Score: 168

 Description   

Currently in dbCheck, we walk through the _id index and fetch each document. For each document, we will call the validateBSON function, which will ensure that the document is well-formed. We will call this in the kDefault validate mode to begin with so that the BSON validation is performant.



 Comments   
Comment by Githook User [ 02/Oct/23 ]

Author:

{'name': 'XueruiFa', 'email': 'xuerui.fa@mongodb.com', 'username': 'XueruiFa'}

Message: SERVER-78451: Add bson validation to dbCheck
Branch: master
https://github.com/mongodb/mongo/commit/075be052d966f8463074a5a7c9b6987977a36fb8

Comment by xgen-buildbaron-user [ 30/Sep/23 ]

Ticket re-opened due to revert. replica_sets_multiversion began a consistent failure of jstests/replsets/dbcheck.js

Comment by Githook User [ 30/Sep/23 ]

Author:

{'name': 'auto-revert-processor', 'email': 'dev-prod-dag@mongodb.com', 'username': ''}

Message: Revert "SERVER-78451: Add bson validation to dbCheck"

This reverts commit 968b9ea86c5b620378fffe8a5b592314930f488f.
Branch: master
https://github.com/mongodb/mongo/commit/490df8a7f93b4346e9c19fbcaed09f36d0cb2a32

Comment by Githook User [ 29/Sep/23 ]

Author:

{'name': 'XueruiFa', 'email': 'xuerui.fa@mongodb.com', 'username': 'XueruiFa'}

Message: SERVER-78451: Add bson validation to dbCheck
Branch: master
https://github.com/mongodb/mongo/commit/968b9ea86c5b620378fffe8a5b592314930f488f

Comment by xgen-buildbaron-user [ 18/Aug/23 ]

Ticket re-opened due to revert. cqf_experimental_no_passthrough began a consistent failure of jstests/noPassthrough/dbcheck_detects_data_corruption.js

Comment by Githook User [ 18/Aug/23 ]

Author:

{'name': 'auto-revert-processor', 'email': 'dev-prod-dag@mongodb.com', 'username': ''}

Message: Revert "SERVER-78451 Add bson validation to dbCheck"

This reverts commit 998d9ee633869763710e108beb05116fc28dd709.
Branch: master
https://github.com/mongodb/mongo/commit/b0dd56bb3c8f90a521c1ecf9412dd198b1434496

Comment by Githook User [ 17/Aug/23 ]

Author:

{'name': 'Aiden Szeto', 'email': 'aiden.szeto@mongodb.com', 'username': 'aidenszeto'}

Message: SERVER-78451 Add bson validation to dbCheck
Branch: master
https://github.com/mongodb/mongo/commit/998d9ee633869763710e108beb05116fc28dd709

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