[DOCS-10648] Clarify that bypassDocumentValidation does not apply for mapReduce inline mode Created: 07/Aug/17  Updated: 30/Oct/23  Resolved: 26/Jan/18

Status: Closed
Project: Documentation
Component/s: manual
Affects Version/s: None
Fix Version/s: Server_Docs_20231030

Type: Improvement Priority: Minor - P4
Reporter: Jeremy Mikola Assignee: Steve Renaker (Inactive)
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Participants:
Days since reply: 6 years, 2 weeks, 5 days ago
Story Points: 0.2

 Description   

The mapReduce documentation currently states for bypassDocumentValidation:

Optional. Enables mapReduce to bypass document validation during the operation. This lets you insert documents that do not meet the validation requirements.

It may be helpful to specify that this option is irrelevant if mapReduce is returning results inline.

One possible edge case: In earlier versions of MongoDB, I believe mapReduce created temporary collections when jsMode was false (default value); this was irrespective of inline mode. Assuming current versions still create these temporary collections, I wonder if there is some edge case where document validation could be enabled on one of these collections while mapReduce was running and cause failures if bypassDocumentValidation was not set (assuming also that bypassDocumentValidation would apply to writes into these temporary collections). This is likely something to ask a server engineer that's more familiar with mapReduce's inner workings.



 Comments   
Comment by Githook User [ 26/Jan/18 ]

Author:

{'name': 'Steve Renaker', 'username': 'steveren', 'email': 'steve.renaker@mongodb.com'}

Message: DOCS-10648: Clarify that bypassDocumentValidation does not apply for mapReduce inline mode
Branch: master
https://github.com/mongodb/docs/commit/06f47f57dd954c4576ae08afc4d5a26f1972037a

Comment by Steve Renaker (Inactive) [ 23/Jan/18 ]

I asked Asya about the temporary collection edge case and she asserts it's not an issue. Temporary collections do not have document validation enabled.

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