Uploaded image for project: 'Documentation'
  1. Documentation
  2. DOCS-10648

Clarify that bypassDocumentValidation does not apply for mapReduce inline mode

    • Type: Icon: Task Task
    • Resolution: Fixed
    • Priority: Icon: Minor - P4 Minor - P4
    • Server_Docs_20231030
    • Affects Version/s: None
    • Component/s: manual
    • Labels:
      None
    • 0.2

      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.

            Assignee:
            steve.renaker@mongodb.com Steve Renaker (Inactive)
            Reporter:
            jmikola@mongodb.com Jeremy Mikola
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved:
              6 years, 15 weeks, 4 days ago