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

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

    XMLWordPrintableJSON

Details

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Major - P3 Major - P3
    • 2.4.5, 2.5.1
    • None
    • MapReduce
    • None
    • Fully Compatible
    • ALL

    Description

      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;
                                  }

      Attachments

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved: