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

Cannot set/list/clear index filters on the secondary

    • Type: Icon: Bug Bug
    • Resolution: Done
    • Priority: Icon: Major - P3 Major - P3
    • 2.6.6, 2.8.0-rc2
    • Affects Version/s: 2.6.5
    • Component/s: Querying
    • None
    • ALL
    • Hide
      1. Connect to a secondary
      2. Run the following commands:
        > db.version()
        2.6.6-pre-
        > db.runCommand({planCacheSetFilter:"docs", query:{x:1}, indexes:[{x:1}]})
        { "note" : "from execCommand", "ok" : 0, "errmsg" : "not master" }
        
        > db.runCommand( { planCacheListFilters: "docs"})
        { "note" : "from execCommand", "ok" : 0, "errmsg" : "not master" }
        
        > db.runCommand({planCacheClearFilters:"docs", query:{x:1}})
        { "note" : "from execCommand", "ok" : 0, "errmsg" : "not master" }
        
      Show
      Connect to a secondary Run the following commands: > db.version() 2.6.6-pre- > db.runCommand({planCacheSetFilter: "docs" , query:{x:1}, indexes:[{x:1}]}) { "note" : "from execCommand" , "ok" : 0, "errmsg" : "not master" } > db.runCommand( { planCacheListFilters: "docs" }) { "note" : "from execCommand" , "ok" : 0, "errmsg" : "not master" } > db.runCommand({planCacheClearFilters: "docs" , query:{x:1}}) { "note" : "from execCommand" , "ok" : 0, "errmsg" : "not master" }

      Now plan cached commands can be run on the secondary (SERVER-15233).

      However, the commands to set/list/clear index filters planCacheSetFilter, planCacheListFilters and planCacheClearFilters still fail to run on the secondary.

            Assignee:
            david.storch@mongodb.com David Storch
            Reporter:
            linda.qin@mongodb.com Linda Qin
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: