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

Cannot run planCacheListQueryShapes on a Secondary

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major - P3
    • Resolution: Fixed
    • Affects Version/s: 2.6.4
    • Fix Version/s: 2.6.6, 2.7.7
    • Component/s: Querying
    • Labels:
      None
    • Operating System:
      ALL
    • Backport Completed:
    • Steps To Reproduce:
      1. connect to a secondary
      2. run db.test.getPlanCache().listQueryShapes()

      Description

      Trying to run db.collection.getPlanCache().listQueryShapes() or

      db.runCommand( { planCacheListQueryShapes : "collection" } ) 

      on a Secondary will result in:

      Error: not master at src/mongo/shell/collection.js:1571

      or

      { "note" : "from execCommand", "ok" : 0, "errmsg" : "not master" }

      Even if rs.slaveOK() is set

        Attachments

          Activity

            People

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

              Dates

              • Created:
                Updated:
                Resolved: