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