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

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

    • Type: Icon: Bug Bug
    • Resolution: Done
    • Priority: Icon: Major - P3 Major - P3
    • 3.3.2
    • Affects Version/s: 2.6.0-rc2
    • Component/s: Querying
    • None
    • Fully Compatible
    • ALL
    • Query 10 (02/22/16)

      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

            Assignee:
            tess.avitabile@mongodb.com Tess Avitabile (Inactive)
            Reporter:
            robert.j.moore@allanbank.com Robert Moore
            Votes:
            0 Vote for this issue
            Watchers:
            8 Start watching this issue

              Created:
              Updated:
              Resolved: