Uploaded image for project: 'Core Server'
  1. Core Server
  2. SERVER-42916

M/R Agg: Reject non-inline mapReduce to an existing sharded collection that is not sharded by _id

    XMLWordPrintable

    Details

    • Type: Task
    • Status: Closed
    • Priority: Major - P3
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 4.3.1
    • Component/s: None
    • Labels:
      None
    • Backwards Compatibility:
      Fully Compatible
    • Epic Link:
    • Sprint:
      Query 2019-10-21

      Description

      In the current mapReduce implementation, there is nothing in place to explicitly reject merging to an existing sharded collection whose shard key is not {_id: 1}. However, since it uses this upsert helper which always targets by _id, the command will eventually fail. We should keep this behavior in 4.4.

        Attachments

          Issue Links

            Activity

              People

              • Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: