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

inaccurate exhaustIsMasterMetrics if an isMaster command alias is used

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major - P3
    • Resolution: Fixed
    • Affects Version/s: 4.5 Required
    • Fix Version/s: 4.7.0, 4.4.2
    • Component/s: Replication
    • Labels:
      None
    • Backwards Compatibility:
      Fully Compatible
    • Operating System:
      ALL
    • Backport Requested:
      v4.4
    • Sprint:
      Repl 2020-08-10

      Description

      The exhaust isMaster metrics rely on the command name when keeping track of exhaust isMaster requests.

      On mongod, we search the command registry for the command name specified in the request object. This ensures that aliases like "ismaster" are properly covered in the exhaust isMaster metrics.

      On mongos, however, we only look at the command name passed into the request. This means that we will incorrectly mark inExhaustIsMaster as false if we send "ismaster" instead of "isMaster" to mongos.

      Mongos should look up the request's command name in the command registry so that any aliases to the isMaster command are correctly covered.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              pavithra.vetriselvan Pavithra Vetriselvan
              Reporter:
              pavithra.vetriselvan Pavithra Vetriselvan
              Participants:
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: