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

mapReduce nonAtomic output option

    • Type: Icon: Question Question
    • Resolution: Duplicate
    • Priority: Icon: Minor - P4 Minor - P4
    • None
    • Affects Version/s: None
    • Component/s: MapReduce
    • Labels:
      None

      I'm running some map reduce jobs, specifying the out parameter as:

      {reduce: <outputCollection>, db: <outputDB>}

      The output step takes many minutes to complete and seems to lock the entire mongod process while it's running. I've read that the nonAtomic option could perhaps prevent this locking behavior. I'm running multiple map reduce jobs in parallel which all specify the same output collection and db in the reduce step. Does specifying

      {nonAtomic: true}

      ensure that the individual documents in the output collection are updated atomically? Could there exist race conditions between the parallel MR reduce operations since they are reducing to the same collection?

            Assignee:
            mathias@mongodb.com Mathias Stearn
            Reporter:
            gkolpin Garrett Kolpin
            Votes:
            0 Vote for this issue
            Watchers:
            7 Start watching this issue

              Created:
              Updated:
              Resolved: