[SERVER-32498] "desc" field in currentOp output no longer contains the thread name used in log messages Created: 01/Jan/18  Updated: 30/Oct/23  Resolved: 05/Feb/18

Status: Closed
Project: Core Server
Component/s: Admin
Affects Version/s: 3.6.0
Fix Version/s: 3.6.4, 3.7.2

Type: Bug Priority: Major - P3
Reporter: Max Hirschhorn Assignee: Jonathan Reams
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Backports
Documented
is documented by DOCS-11324 Docs for SERVER-32498: "desc" field i... Closed
Backwards Compatibility: Fully Compatible
Operating System: ALL
Backport Requested:
v3.6
Steps To Reproduce:

python buildscripts/resmoke.py currentop_desc.js

currentop_desc.js

(function() {
    "use strict";
 
    let res = assert.commandWorked(db.runCommand({whatsmyuri: 1}));
    const myUri = res.you;
 
    res = assert.commandWorked(db.adminCommand({currentOp: 1, client: myUri}));
    const threadName = res.inprog[0].desc;
    const connectionId = res.inprog[0].connectionId;
 
    assert.eq("conn" + connectionId, threadName, tojson(res));
})();

Sprint: Platforms 2018-01-29, Platforms 2018-02-12
Participants:

 Description   

Client::_desc is initialized as the string "conn" rather than the string "conn" + session->id().

Note: It is still possible to reconstruct the thread name via the "connectionId" field in the currentOp output.



 Comments   
Comment by Githook User [ 01/Mar/18 ]

Author:

{'email': 'jbreams@mongodb.com', 'name': 'Jonathan Reams', 'username': 'jbreams'}

Message: SERVER-32498 Client should capture full thread name

(cherry picked from commit 0a08faf1480282e8db11086050eac3f9e7aaa5be)
Branch: v3.6
https://github.com/mongodb/mongo/commit/ea4b37cfc6a1cc917670864f56dc20f25303aad4

Comment by Githook User [ 05/Feb/18 ]

Author:

{'email': 'jbreams@mongodb.com', 'name': 'Jonathan Reams', 'username': 'jbreams'}

Message: SERVER-32498 Client should capture full thread name
Branch: master
https://github.com/mongodb/mongo/commit/0a08faf1480282e8db11086050eac3f9e7aaa5be

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