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

Reducing M/R output into a new collection fails

    • Type: Icon: Bug Bug
    • Resolution: Done
    • Priority: Icon: Major - P3 Major - P3
    • 1.7.5
    • Affects Version/s: 1.7.4
    • Component/s: Querying
    • None
    • Environment:
      Mac OS X 64-bit
    • OS X

      When the "out" parameter of M/R is used to reduce the output into a collection that does not yet exist, a DB assertion error is thrown:

      > db.data.mapReduce(m, r, { query:

      { serial: "BL0208109134", name: "interface-count-up" }

      , finalize: f, out: { reduce: "reduce" }});
      Wed Dec 22 10:58:08 uncaught exception: map reduce failed: {
      "assertion" : "Not an index cursor",
      "assertionCode" : 9011,
      "errmsg" : "db assertion failure",
      "ok" : 0
      }

      If you first create the collection by doing "out: 'reduce'", subsequent reduce operations will work as expected.

            Assignee:
            eliot Eliot Horowitz (Inactive)
            Reporter:
            normelton Norman Elton
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: