[SERVER-9130] Shell calls replSetGetStatus instead of isMaster Created: 25/Mar/13  Updated: 11/Jul/16  Resolved: 02/Aug/13

Status: Closed
Project: Core Server
Component/s: Shell
Affects Version/s: 2.2.3, 2.4.1
Fix Version/s: 2.5.2

Type: Bug Priority: Minor - P4
Reporter: Scott Hernandez (Inactive) Assignee: Scott Hernandez (Inactive)
Resolution: Done Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Backwards Compatibility: Minor Change
Operating System: ALL
Participants:

 Description   

When constructing the shell prompt we call replSetGetStatus which is an Admin command. This should not be a requirement so we need to swap in isMaster for it.

This spams the destination server and causes an inconsistent prompt.

Users will see the error "command denied:

{ replSetGetStatus: 1.0, forShell: 1.0 }

" in their log until they have authenticated with a role that allows replSetGetStatus.



 Comments   
Comment by auto [ 02/Aug/13 ]

Author:

{u'username': u'scotthernandez', u'name': u'Scott Hernandez', u'email': u'scotthernandez@gmail.com'}

Message: SERVER-9130: missing files and fix for lastError reset on isMaster
Branch: master
https://github.com/mongodb/mongo/commit/a2fedf45ff92b714b7e704d7547b76b815988d4d

Comment by auto [ 02/Aug/13 ]

Author:

{u'username': u'scotthernandez', u'name': u'Scott Hernandez', u'email': u'scotthernandez@gmail.com'}

Message: SERVER-9130: use isMaster instead of replSetGetStatus for prompt generation
Branch: master
https://github.com/mongodb/mongo/commit/0af4f9e36a621e9455e732b0aec8757682d911b9

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