[SERVER-15407] Set thread name on Mac OS X and Linux Created: 25/Sep/14  Updated: 07/Sep/17  Resolved: 02/Dec/16

Status: Closed
Project: Core Server
Component/s: Diagnostics
Affects Version/s: None
Fix Version/s: 3.4.5, 3.5.1

Type: Improvement Priority: Minor - P4
Reporter: Geert Bosch Assignee: Mark Benvenuto
Resolution: Done Votes: 0
Labels: bkp
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Backports
Related
is related to SERVER-27281 pkill/pgrep cannot find mongod on Linux Closed
Backwards Compatibility: Fully Compatible
Backport Requested:
v3.4
Sprint: Platforms 2017-01-23
Participants:

 Description   

Currently the thread name is only set on Windows. We should also set it on Mac OS X and Linux.



 Comments   
Comment by Githook User [ 28/Apr/17 ]

Author:

{u'username': u'markbenvenuto', u'name': u'Mark Benvenuto', u'email': u'mark.benvenuto@mongodb.com'}

Message: SERVER-15407 Set Thread Name in Windows, Mac OS X, and Linux

(cherry picked from commit cd675c9e3d80f012bbe654d098a988074bd57abc)
Branch: v3.4
https://github.com/mongodb/mongo/commit/4945cdd909c91b4e155a17a07d6766f9ca88be9f

Comment by Eddie Louie [ 21/Apr/17 ]

Thanks mark.benvenuto. I'll wait for your backports before I proceed with mine.

Comment by Mark Benvenuto [ 21/Apr/17 ]

eddie.louie I can do the backports once they have been approved. It makes sense for me to do the backports since I wrote the original code.

Comment by Eddie Louie [ 20/Apr/17 ]

I've requested the following v3.4 backports:

https://jira.mongodb.org/browse/BACKPORT-790
https://jira.mongodb.org/browse/BACKPORT-798
https://jira.mongodb.org/browse/BACKPORT-799

mark.benvenuto I was told by max.hirschhorn that the backports might be better done by the server engineer involved with the original ticket. Can you confirm whether you should do this or if you want me to do so. I need these backports pushed before my backports on Improved Hang_analyzer is pushed.

Comment by Eddie Louie [ 18/Apr/17 ]

mark.benvenuto acm I'm looking backport this change to v3.4. Do you have any concerns or know of any other dependent tickets that I should also backport with this commit?

Comment by Githook User [ 02/Dec/16 ]

Author:

{u'username': u'markbenvenuto', u'name': u'Mark Benvenuto', u'email': u'mark.benvenuto@mongodb.com'}

Message: SERVER-15407 Set Thread Name in Windows, Mac OS X, and Linux
Branch: master
https://github.com/mongodb/mongo/commit/cd675c9e3d80f012bbe654d098a988074bd57abc

Comment by Geert Bosch [ 27/Oct/14 ]

While this works on my Ubuntu 14.04 and Mac OS X 10.9/10.10 setups, this requires better header file magic to ensure it works on all system variants. MCI testing showed a number of build failures. Will revisit after 2.8.

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