[SERVER-16291] Cannot set/list/clear index filters on the secondary Created: 24/Nov/14  Updated: 11/Jul/16  Resolved: 24/Nov/14

Status: Closed
Project: Core Server
Component/s: Querying
Affects Version/s: 2.6.5
Fix Version/s: 2.6.6, 2.8.0-rc2

Type: Bug Priority: Major - P3
Reporter: Linda Qin Assignee: David Storch
Resolution: Done Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Related
Operating System: ALL
Backport Completed:
Steps To Reproduce:
  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" }

Participants:

 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.



 Comments   
Comment by Githook User [ 24/Nov/14 ]

Author:

{u'username': u'dstorch', u'name': u'David Storch', u'email': u'david.storch@10gen.com'}

Message: SERVER-16291 allow index filters commands to run on secondaries if slaveOk explicitly set to true

(cherry picked from commit 22871dbd76bfab1a7cb8d63d944f8f2c449e26a2)

Conflicts:
src/mongo/s/commands/cluster_index_filter_cmd.cpp
Branch: v2.6
https://github.com/mongodb/mongo/commit/b564e26b734f1a66323a4879674e96cf7c3d624f

Comment by Githook User [ 24/Nov/14 ]

Author:

{u'username': u'dstorch', u'name': u'David Storch', u'email': u'david.storch@10gen.com'}

Message: SERVER-16291 allow index filters commands to run on secondaries if slaveOk explicitly set to true
Branch: master
https://github.com/mongodb/mongo/commit/22871dbd76bfab1a7cb8d63d944f8f2c449e26a2

Generated at Thu Feb 08 03:40:35 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.