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

allow_partial_results_with_maxTimeMS.js getMores are too slow

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major - P3
    • Resolution: Fixed
    • 6.2.0-rc0
    • 6.2.0-rc0
    • None
    • None

    Description

      As seen in BF-26772, the getMore command in allow_partial_results_with_maxTimeMS.js:191 is taking very long to execute, causing a timeout instead of returning the partial results we expect to see.  This is because the initial find uses a tiny batch size of 1.  The subsequent getMore sets a much larger batch size, but the cursor retains its original batch size of 1, requiring the router to make hundreds of getMore requests to the remotes.

      This behavior is actually quite confusing and I'll create another ticket to consider changing it.  However, the quick solution to this js test failure is to use a larger batch size in the initial find.

      Attachments

        Issue Links

          Activity

            People

              steve.tarzia@mongodb.com Steve Tarzia
              steve.tarzia@mongodb.com Steve Tarzia
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: