[SERVER-57576] validate_cache_dir should print the stacktrace Created: 09/Jun/21  Updated: 29/Oct/23  Resolved: 07/Jul/21

Status: Closed
Project: Core Server
Component/s: None
Affects Version/s: None
Fix Version/s: 5.0.2, 5.1.0-rc0

Type: Improvement Priority: Major - P3
Reporter: Daniel Moody Assignee: Daniel Moody
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Backports
Backwards Compatibility: Fully Compatible
Backport Requested:
v5.0
Sprint: Dev Platform 2021-06-28, Dev Platform 2021-07-12
Participants:

 Description   

Recently the validate cache dir caught an exception from the OS, but it only prints the exception and not the stacktrace: BF-21466

Add traceback to the validate cachedir and have it print the full stack trace for better diagnostics.



 Comments   
Comment by Vivian Ge (Inactive) [ 06/Oct/21 ]

Updating the fixversion since branching activities occurred yesterday. This ticket will be in rc0 when it’s been triggered. For more active release information, please keep an eye on #server-release. Thank you!

Comment by Githook User [ 21/Jul/21 ]

Author:

{'name': 'Daniel Moody', 'email': 'daniel.moody@mongodb.com', 'username': 'dmoody256'}

Message: SERVER-57576 add timestamp and stacktrace to cachedir logs

(cherry picked from commit ae3d4c49b858e37ddf7f9e4f95da17e59a977291)
Branch: v5.0
https://github.com/mongodb/mongo/commit/74fa3896e367bc643f9d883fe0b5be3ae67fddce

Comment by Githook User [ 06/Jul/21 ]

Author:

{'name': 'Daniel Moody', 'email': 'daniel.moody@mongodb.com', 'username': 'dmoody256'}

Message: SERVER-57576 add timestamp and stacktrace to cachedir logs
Branch: master
https://github.com/mongodb/mongo/commit/ae3d4c49b858e37ddf7f9e4f95da17e59a977291

Comment by Daniel Moody [ 09/Jun/21 ]

I don't think so, we catch the exception and stop it, so we can return false on the cache request to allow the build to continue as if the cache request was a miss. The related BF was failing on a timeout, not on the exception specifically.

Comment by Andrew Morrow (Inactive) [ 09/Jun/21 ]

Would we get a stacktrace if we built with the SCons --debug=stacktrace option?

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