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

parallelCollectionScan does not provide a time limit option (maxTimeMS).

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major - P3
    • Resolution: Fixed
    • Affects Version/s: 2.6.0-rc2
    • Fix Version/s: 3.3.2
    • Component/s: Querying
    • Labels:
      None
    • Backwards Compatibility:
      Fully Compatible
    • Operating System:
      ALL
    • Sprint:
      Query 10 (02/22/16)

      Description

      Testing with the new parallelCollectionScan command and it looks like this command does not support the ability to limit the execution time of the operation.

      I had expected it to work like the normal query operation were the cursor has a time limit associated with it that once exhausted causes a failure back to the client.

      Is there a reason this functionality was left out?

      I think all that would be needed would be to call setLeftoverMaxTimeMicros() based on a maxTimeMS within the command on the ClientCursor created on line 238 of parallel_collection_scan.cpp. https://github.com/mongodb/mongo/blob/master/src/mongo/db/commands/parallel_collection_scan.cpp#L238

        Attachments

          Issue Links

            Activity

              People

              • Votes:
                0 Vote for this issue
                Watchers:
                8 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: