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

Shell calls replSetGetStatus instead of isMaster

    XMLWordPrintableJSON

Details

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Minor - P4 Minor - P4
    • 2.5.2
    • 2.2.3, 2.4.1
    • Shell
    • None
    • Minor Change
    • ALL

    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.

      Attachments

        Activity

          People

            scotthernandez Scott Hernandez (Inactive)
            scotthernandez Scott Hernandez (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: