Uploaded image for project: 'MongoDB Shell'
  1. MongoDB Shell
  2. MONGOSH-2001

Set the readPreference to secondary still it use primary to serve the request

    • Type: Icon: Bug Bug
    • Resolution: Incomplete
    • Priority: Icon: Major - P3 Major - P3
    • No version
    • Affects Version/s: None
    • Component/s: None
    • None
    • Environment:
      OS: Windows
      Robo3T : 1.4.3
    • Not Needed
    • Developer Tools

      Problem Statement/Rationale

      db.getCollection('folders').find({}).readPref('secondary').explain('executionStats');

      select any database and set readPref to secondary for read call but when I check executionStats It show read from my Primary ?

      why ?

            Assignee:
            kevin.mas@mongodb.com Kevin Mas Ruiz
            Reporter:
            harshildarji765@gmail.com Harshil Darji
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: