[SERVER-38785] Enable interruptions in JS Created: 27/Dec/18  Updated: 06/Dec/22

Status: Open
Project: Core Server
Component/s: JavaScript
Affects Version/s: None
Fix Version/s: features we're not sure of

Type: Improvement Priority: Major - P3
Reporter: Mira Carey Assignee: Backlog - Query Optimization
Resolution: Unresolved Votes: 0
Labels: PM-1279
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Assigned Teams:
Query Optimization
Backwards Compatibility: Fully Compatible
Sprint: Service Arch 2018-12-31
Participants:

 Description   

Enabling periodic interruptions in javascript would allow us to checkForInterrupt without an outside thread (allowing us to detect killop/ socket disconnect without things like the killop listener).

The main impediment here is that the default interruption mechanism is signal based, and that we make syscalls from javascript which we don't intend to receive eintr.  We can remove that signal handler, but need to measure the performance impact.

If we don't do something in this space, socket disconnect is killop won't work for javascript


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