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

Cannot set/list/clear index filters on the secondary

    XMLWordPrintable

Details

    • Bug
    • Status: Closed
    • Major - P3
    • Resolution: Fixed
    • 2.6.5
    • 2.6.6, 2.8.0-rc2
    • 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" }

    Description

      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.

      Attachments

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved: