[SERVER-47922] Make it easier to see what process is on the other end of a connection Created: 04/May/20  Updated: 29/Oct/23  Resolved: 23/Jul/20

Status: Closed
Project: Core Server
Component/s: Diagnostics, Networking
Affects Version/s: None
Fix Version/s: 4.7.0

Type: Improvement Priority: Major - P3
Reporter: Judah Schvimer Assignee: Gabriel Russell (Inactive)
Resolution: Fixed Votes: 4
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Duplicate
is duplicated by SERVER-49038 remove embedded_options_helpers Closed
Related
related to SERVER-50085 Make it easier to correlate mongo pro... Closed
related to SERVER-62683 LOG 51800 For Client Metadata Informa... Closed
Backwards Compatibility: Fully Compatible
Sprint: Service arch 2020-07-13, Service Arch 2020-07-27
Participants:

 Description   

In tests I often see:

[js_test:remove_newly_added_field_after_finishing_initial_sync] 2020-04-16T18:46:08.548+0000 d20030| 2020-04-16T18:46:08.548+00:00 I  NETWORK  51800   [conn24] "client metadata","attr":{"remote":"10.122.28.155:60072","client":"conn24","doc":{"driver":{"name":"NetworkInterfaceTL","version":"4.5.0-745-g6388b97"},"os":{"type":"Linux","name":"Red Hat Enterprise Linux Server release 6.2 (Santiago)","architecture":"x86_64","version":"Kernel 2.6.32-220.el6.x86_64"}}}

but have no idea what's on the other side of conn24. Being able to see the host and port or the process id, and maybe the type of process (mongod, mongos, shell), of whatever process is on the other side of the connection would be really helpful in diagnostics. If for some reason this is only doable in our tests, even that would be enormously beneficial.



 Comments   
Comment by Githook User [ 23/Jul/20 ]

Author:

{'name': 'Gabriel Russell', 'email': 'gabriel.russell@mongodb.com', 'username': 'gabrielrussell'}

Message: SERVER-47922 pids and names in client metadata in debug builds
Branch: master
https://github.com/mongodb/mongo/commit/b03eec1e1f0443ffa1b7a5da1805dd2ed3145f44

Comment by Githook User [ 18/Jul/20 ]

Author:

{'name': 'Gabriel Russell', 'email': 'gabriel.russell@mongodb.com', 'username': 'gabrielrussell'}

Message: SERVER-47922 move embedded config from argv[0] to a StaticImmortal
Branch: master
https://github.com/mongodb/mongo/commit/87c0656852be4f4ed6a14f08cd75a6000dc4ee74

Comment by Githook User [ 16/Jul/20 ]

Author:

{'name': 'Gabriel Russell', 'email': 'gabriel.russell@mongodb.com', 'username': 'gabrielrussell'}

Message: SERVER-47922 remove unused embedded options helpers
Branch: master
https://github.com/mongodb/mongo/commit/db63f4a342f836eb7c9e39a5a05e33af4b19dd4f

Comment by A. Jesse Jiryu Davis [ 05/May/20 ]

Client metadata is quite flexible, maybe in test mode, shells and servers add more info there?

Generated at Thu Feb 08 05:15:37 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.