[SERVER-16190] Detect if JSThread threw JS or C++ exception Created: 17/Nov/14  Updated: 24/Nov/14  Resolved: 17/Nov/14

Status: Closed
Project: Core Server
Component/s: Internal Code, JavaScript
Affects Version/s: 2.8.0-rc0
Fix Version/s: 2.8.0-rc1

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

Backwards Compatibility: Fully Compatible
Participants:

 Description   

Want to be able to detect if a thread threw a JS or C++ exception during its execution, without calling join() on the thread.

This will be used within the concurrency tests to avoid hanging, e.g. if there was a socket exception when spawning one of the worker threads.



 Comments   
Comment by Githook User [ 17/Nov/14 ]

Author:

{u'username': u'visemet', u'name': u'Max Hirschhorn', u'email': u'max.hirschhorn@mongodb.com'}

Message: SERVER-16190 Add hasFailed() function to JSThreadConfig.

Allows the caller to detect if the JSThread has thrown a JS or C++
exception, without calling join() on the thread.
Branch: master
https://github.com/mongodb/mongo/commit/09d04e84e71651a5af7fa738c4614a6dd4dfb848

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