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

Cannot set/list/clear index filters on the secondary

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major - P3
    • Resolution: Fixed
    • Affects Version/s: 2.6.5
    • Fix Version/s: 2.6.6, 2.8.0-rc2
    • Component/s: Querying
    • Labels:
      None
    • Operating System:
      ALL
    • Backport Completed:
    • Steps To Reproduce:
      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

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

              Dates

              • Created:
                Updated:
                Resolved: