[SERVER-19808] Improve stack-trace reports from concurrency suite Created: 06/Aug/15  Updated: 19/Sep/15  Resolved: 07/Aug/15

Status: Closed
Project: Core Server
Component/s: Testing Infrastructure
Affects Version/s: 3.1.6
Fix Version/s: 3.1.7

Type: Task Priority: Major - P3
Reporter: Kamran K. Assignee: Kamran K.
Resolution: Done Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Related
related to SERVER-20431 Prepend error messages to stack trace... Closed
is related to SERVER-18781 Work out level of necessary stack tra... Closed
Backwards Compatibility: Fully Compatible
Sprint: Sharding 8 08/28/15
Participants:

 Description   

To make it easier to debug concurrency suite failures, we should mimic the stack traces from v8 until SERVER-18781 is addressed.

Example report from 3.1.5:

ReferenceError: __mrerror__ is not defined
    at DBCollection.mapReduce (jstests/concurrency/fsm_libs/worker_thread.js:27:21)
    at Object.mapReduce (jstests/concurrency/fsm_workloads/map_reduce_reduce_nonatomic.js:46:32)
    at Object.runFSM [as run] (jstests/concurrency/fsm_libs/fsm.js:19:16)
    at <anonymous>:8:13
    at Object.main (jstests/concurrency/fsm_libs/worker_thread.js:108:17)
    at ____MongoToV8_newFunction_temp (<anonymous>:5:25)
    at ____MongoToV8_newFunction_temp (<anonymous>:3:24)

Example report from master:

DBCollection.prototype.mapReduce@jstests/concurrency/fsm_libs/worker_thread.js:27:9
mapReduce@jstests/concurrency/fsm_workloads/map_reduce_merge.js:46:19
runFSM@jstests/concurrency/fsm_libs/fsm.js:19:13
____MongoToSM_newFunction_temp/<@:10:9
main@jstests/concurrency/fsm_libs/worker_thread.js:108:17
____MongoToSM_newFunction_temp@:7:1
____MongoToSM_newFunction_temp@:5:24



 Comments   
Comment by Githook User [ 07/Aug/15 ]

Author:

{u'username': u'kkmongo', u'name': u'Kamran Khan', u'email': u'kamran.khan@mongodb.com'}

Message: SERVER-19808 Improve stack trace reports from concurrency suite

We now prepend error messages to stack traces to emulate the behavior
of v8 and to improve debuggability.
Branch: master
https://github.com/mongodb/mongo/commit/5033d600a0d447751265990ec26c2b0cfb6e3abb

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