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

map reduce doesn't seem to yield unless it finds matches

    • Type: Icon: Bug Bug
    • Resolution: Done
    • Priority: Icon: Major - P3 Major - P3
    • 2.4.5, 2.5.1
    • Affects Version/s: None
    • Component/s: MapReduce
    • None
    • Fully Compatible
    • ALL

      Mongod operations that support yielding must periodically yield a db lock voluntarily. The map reduce implementation does not yield the db lock voluntarily while its cursor iterates over non matching documents.

      from mr.cpp

                              while ( cursor->ok() ) {
                                  if ( ! cursor->currentMatches() ) {
                                      cursor->advance();
                                      continue;
                                  }
      

            Assignee:
            dan@mongodb.com Daniel Pasette (Inactive)
            Reporter:
            aaron Aaron Staple
            Votes:
            1 Vote for this issue
            Watchers:
            7 Start watching this issue

              Created:
              Updated:
              Resolved: