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

add option to map/reduce output to output to the primary of a replica set or a different server

    XMLWordPrintable

Details

    • Improvement
    • Status: Closed
    • Major - P3
    • Resolution: Gone away
    • 2.0.1
    • None
    • MapReduce
    • None

    Description

      In the mongo shell, after connecting directly to a secondary, I can "use local", and then save documents to that database. I know they're not replicated, and that I need to copy the result somewhere else if I want to preserve it.

      However, if I try to use the "out" option of "mapreduce" to write the output of a map-reduce job to "local", I get an error that I can't do that. It looks like the write is checked too high up in the call stack. It looks like that comes from here: https://github.com/mongodb/mongo/blob/master/db/commands/mr.cpp#L984-991 .

      Attachments

        Issue Links

          Activity

            People

              backlog-query-execution Backlog - Query Execution
              dan@mongodb.com Daniel Pasette
              Votes:
              15 Vote for this issue
              Watchers:
              19 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: