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

host field for idleCursors doesn't include port

    • Type: Icon: Bug Bug
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 4.1.6
    • Affects Version/s: 4.1.4
    • Component/s: Aggregation Framework
    • None
    • Fully Compatible
    • ALL
    • Query 2018-11-19

      When running a $currentOp agg with idleCursors: true, the host field for output documents with type: "idleCursor" doesn't include the port — but it should, like the type: "op" documents. Without this it's impossible to distinguish between multiple mongod/mongos servers running on different ports of a host.

      It uses getHostNameCached() but should use getHostNameCachedAndPort() instead (see also $collStats).

            Assignee:
            martin.neupauer@mongodb.com Martin Neupauer
            Reporter:
            kevin.pulo@mongodb.com Kevin Pulo
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: