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

Add readPrefMode option to benchRun find/findOne ops

    XMLWordPrintable

    Details

    • Type: Task
    • Status: Closed
    • Priority: Major - P3
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 4.2.15, 4.4.7, 4.0.26, 5.0.0-rc5, 5.1.0-rc0
    • Component/s: None
    • Labels:
      None
    • Backwards Compatibility:
      Fully Compatible
    • Backport Requested:
      v5.0, v4.4, v4.2, v4.0
    • Sprint:
      Query Execution 2021-06-28, Query Execution 2021-07-12
    • Linked BF Score:
      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

            Assignee:
            yoonsoo.kim Yoon Soo Kim
            Reporter:
            yoonsoo.kim Yoon Soo Kim
            Participants:
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: