[SERVER-49915] Disable document validation for "<database>.system.resharding.*" namespaces Created: 25/Jul/20  Updated: 29/Oct/23  Resolved: 17/Aug/20

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

Type: Task Priority: Major - P3
Reporter: Max Hirschhorn Assignee: Haley Connelly
Resolution: Fixed Votes: 0
Labels: PM-234-M3, PM-234-T-data-clone, PM-234-T-oplog-apply
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Backwards Compatibility: Fully Compatible
Sprint: Sharding 2020-08-24
Participants:

 Description   

Add case to this part of CollectionImpl::checkValidation() to return Status::OK(). The donor shard primary is responsible for performing document validation. Consider adding a NamespaceString::isExemptedFromDocumentValidation() method to package up this special handler.

The goal is for the recipient shard primary to behave like a replica set secondary when performing operations on the "<database>.system.resharding.*" namespace. Secondaries use DisableDocumentValidation to skip doing document validation during oplog application. SERVER-48081 should be kept in mind for where expect to place the early return of Status::OK().



 Comments   
Comment by Githook User [ 17/Aug/20 ]

Author:

{'name': 'Haley Connelly', 'email': 'haley.connelly@mongodb.com', 'username': 'haleyConnelly'}

Message: SERVER-49915 Disable document validation for <database>.system.resharding.* namespaces
Branch: master
https://github.com/mongodb/mongo/commit/e2cb34fa34829370153fe207950f8c74dea45826

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