[SERVER-15994] listIndexes and listCollections can be run on secondaries without slaveOk bit Created: 06/Nov/14  Updated: 17/May/19  Resolved: 18/Nov/14

Status: Closed
Project: Core Server
Component/s: Replication
Affects Version/s: 2.7.8
Fix Version/s: 2.6.6, 2.8.0-rc1

Type: Bug Priority: Major - P3
Reporter: Randolph Tan Assignee: Matt Dannenberg
Resolution: Done Votes: 0
Labels: 28qa
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Attachments: File repl_listidx.js    
Issue Links:
Depends
Related
related to PYTHON-920 collection_names, options, and index_... Closed
related to PYTHON-921 database_names prohibited on direct c... Closed
is related to SERVER-17050 Error message for read-commands on se... Closed
Backwards Compatibility: Major Change
Operating System: ALL
Backport Completed:
Participants:
Linked BF Score: 0

 Description   

Should able to correct this by having CmdListIndexes::slaveOk return false. Note: CmsListIndexes::slaveOverrideOk is already returning the correct value.



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

Author:

{u'username': u'dannenberg', u'name': u'matt dannenberg', u'email': u'matt.dannenberg@10gen.com'}

Message: SERVER-15994 backport compatibility fixes from 2.8 listDatabase/Collections/Indexes slaveOk changes
Branch: v2.6
https://github.com/mongodb/mongo/commit/360be90a97b62e2a0801e99275c91a1a80221ef6

Comment by Githook User [ 18/Nov/14 ]

Author:

{u'username': u'dannenberg', u'name': u'matt dannenberg', u'email': u'matt.dannenberg@10gen.com'}

Message: SERVER-15994 fix listIndexes, listDatabases, and listCollections to require the slaveOK bit to be set
Branch: master
https://github.com/mongodb/mongo/commit/d0cd11123e114ea8cea33e37d06d1cf43c41727b

Comment by Randolph Tan [ 10/Nov/14 ]

Confirmed that listCollections has the same problem.

Comment by Eric Milkie [ 07/Nov/14 ]

We should consider changing listCollections as well, and perhaps listDatabases as well.

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