[SERVER-28349] Process output logs generated by hang_analyzer are missing stderr Created: 16/Mar/17  Updated: 06/Dec/17  Resolved: 03/Apr/17

Status: Closed
Project: Core Server
Component/s: Testing Infrastructure
Affects Version/s: None
Fix Version/s: 3.4.5, 3.5.6

Type: Bug Priority: Major - P3
Reporter: Jonathan Abrahams Assignee: Eddie Louie
Resolution: Done Votes: 0
Labels: bkp
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Backports
Backwards Compatibility: Fully Compatible
Operating System: ALL
Backport Requested:
v3.4
Sprint: TIG 2017-04-17
Participants:

 Description   

The work done in SERVER-27869 created a log output for each process analyzed in hang_analyzer.py. Log output are saved in a process specific file, i.e., debugger_mongod_1234.log. Any error message sent to stderr are missing from this log and need to be captured as well.



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

Author:

{u'username': u'elouie99', u'name': u'Eddie Louie', u'email': u'eddie.louie@mongodb.com'}

Message: SERVER-28349 Redirect stderr to stdout for process output logs generated by hang_analyzer

(cherry picked from commit 7c14dc3bd539bd732f61d24a144f3f3800b8b9a8)
Branch: v3.4
https://github.com/mongodb/mongo/commit/2c004a5453f535dd954fe682926f0e0a64c44a9d

Comment by Githook User [ 03/Apr/17 ]

Author:

{u'username': u'elouie99', u'name': u'Eddie Louie', u'email': u'eddie.louie@mongodb.com'}

Message: SERVER-28349 Redirect stderr to stdout for process output logs generated by hang_analyzer
Branch: master
https://github.com/mongodb/mongo/commit/7c14dc3bd539bd732f61d24a144f3f3800b8b9a8

Comment by Max Hirschhorn [ 22/Mar/17 ]

It's probably sufficient to redirect the stderr of the process to stdout using subprocess.STDOUT rather than introducing a separate LoggerPipe for stderr.

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