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

Add readPrefMode option to benchRun find/findOne ops

    XMLWordPrintableJSON

Details

    • Task
    • Status: Closed
    • Major - P3
    • Resolution: Fixed
    • None
    • 4.2.15, 4.4.7, 4.0.26, 5.0.0-rc5, 5.1.0-rc0
    • None
    • None
    • Fully Compatible
    • v5.0, v4.4, v4.2, v4.0
    • Query Execution 2021-06-28, Query Execution 2021-07-12
    • 62

    Description

      BF-21667 has been caused by PERF-2404. The change has made readCmd: true required for find/findOne ops in benchRun() but benchRun() does not support any DBQuery.Option under read command mode. We can have benchRun() support DBQuery.Option.slaveOk in a way that the option is translated into readPreference when we upconvert find/findOne op into find command inside benchRun() implementation.

      Attachments

        Activity

          People

            yoonsoo.kim@mongodb.com Yoon Soo Kim
            yoonsoo.kim@mongodb.com Yoon Soo Kim
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: