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

Cannot run planCacheListQueryShapes on a Secondary

    XMLWordPrintable

Details

    • Bug
    • Status: Closed
    • Major - P3
    • Resolution: Fixed
    • 2.6.4
    • 2.6.6, 2.7.7
    • Querying
    • None
    • ALL
      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

            david.storch@mongodb.com David Storch
            andre.defrere@mongodb.com Andre de Frere
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: