[SERVER-4075] New settable parameter to force stack traces from all asserts Created: 15/Oct/11  Updated: 11/Jul/16  Resolved: 07/Dec/11

Status: Closed
Project: Core Server
Component/s: Admin
Affects Version/s: None
Fix Version/s: 2.1.0

Type: Improvement Priority: Major - P3
Reporter: Greg Studer Assignee: Greg Studer
Resolution: Done Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Backwards Compatibility: Fully Compatible
Participants:

 Description   

It would be nice to be able to do something like :

mongo <host>
> use admin
> db.runCommand(

{ setParameter : 1, forceAssertStackTrace : true }

)

which would then start printing full stack traces for all assertions on the running server. This would be useful in tracking down uncaught exceptions from frequently-used parts of the code.



 Comments   
Comment by Greg Studer [ 07/Dec/11 ]

use admin
db.runCommand(

{ setParameter : 1, traceExceptions : true }

)

Comment by auto [ 07/Dec/11 ]

Author:

{u'login': u'gregstuder', u'name': u'Greg Studer', u'email': u'greg@10gen.com'}

Message: SERVER-4075 add traceException parameter for turning on stack traces of all DBExceptions thrown from any part of code

should be used only for debugging
Branch: master
https://github.com/mongodb/mongo/commit/73f4ab3c353fbc9572dd2aac539f8bc7abe1b5ab

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