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

inaccurate exhaustIsMasterMetrics if an isMaster command alias is used

    • Type: Icon: Bug Bug
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 4.7.0, 4.4.2
    • Affects Version/s: 4.5 Required
    • Component/s: Replication
    • None
    • Fully Compatible
    • ALL
    • v4.4
    • Repl 2020-08-10

      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.

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

              Created:
              Updated:
              Resolved: