[SERVER-45491] Add resmoke.py option to save mongod.log and mongos.log files Created: 10/Jan/20  Updated: 29/Oct/23  Resolved: 28/Jan/20

Status: Closed
Project: Core Server
Component/s: Testing Infrastructure
Affects Version/s: None
Fix Version/s: 4.3.4

Type: New Feature Priority: Major - P3
Reporter: Raiden Worley (Inactive) Assignee: Raiden Worley (Inactive)
Resolution: Fixed Votes: 0
Labels: tig-resmoke
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Attachments: Text File SERVER-45491.patch    
Issue Links:
Duplicate
Related
related to SERVER-46867 Ensure that a db directory is created... Closed
related to SERVER-45924 Forward resmoke log file storage opti... Closed
Backwards Compatibility: Fully Compatible
Sprint: STM 2020-01-23, STM 2020-02-10
Participants:
Story Points: 2

 Description   

SERVER-45491.patch Copied from TIG-2235 to be a SERVER ticket.

When resmoke.py runs replica set tests, the mongod servers log to stdout by default. This can be overridden only by modifying the Javascript test code to pass useLogFiles to ReplSetTest.

It would be useful to me have a way, without modifying the Javascript test code, to make the servers log to files for post-test analysis. I propose a resmoke.py command-line option that enables logging to disk and prevents post-test cleanup of the logfiles.



 Comments   
Comment by A. Jesse Jiryu Davis [ 28/Jan/20 ]

Thank you!

Comment by Githook User [ 28/Jan/20 ]

Author:

{'email': 'carl.worley@10gen.com', 'name': 'Carl Raiden Worley', 'username': 'aggrand'}

Message: SERVER-45491 Add resmoke.py option to save mongod.log and mongos.log files
Branch: master
https://github.com/mongodb/mongo/commit/8f9e17ee4bf9ebebe6d94e737bd67ed2468c4ae6

Comment by Raiden Worley (Inactive) [ 10/Jan/20 ]

jesse Thanks for attaching! I'll take a look.

Comment by A. Jesse Jiryu Davis [ 10/Jan/20 ]

I've attached a patch that works for me.

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