[SERVER-37842] host field for idleCursors doesn't include port Created: 31/Oct/18  Updated: 29/Oct/23  Resolved: 08/Nov/18

Status: Closed
Project: Core Server
Component/s: Aggregation Framework
Affects Version/s: 4.1.4
Fix Version/s: 4.1.6

Type: Bug Priority: Major - P3
Reporter: Kevin Pulo Assignee: Martin Neupauer
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Related
related to SERVER-37436 Add fields to top level of idleCursor... Closed
Backwards Compatibility: Fully Compatible
Operating System: ALL
Sprint: Query 2018-11-19
Participants:

 Description   

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).



 Comments   
Comment by Githook User [ 08/Nov/18 ]

Author:

{'name': 'Martin Neupauer', 'email': 'martin.neupauer@mongodb.com', 'username': 'MartinNeupauer'}

Message: SERVER-37842 host field for idleCursors doesn't include port.
Branch: master
https://github.com/mongodb/mongo/commit/5cfc1bc71502a8ee856a75bc80f3cd70ebc330f9

Generated at Thu Feb 08 04:47:11 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.