relent()
not responding to Task cancellation
#21
Labels
api
Relates to the API design
bug
Describes something not working as intended
code quality
Concerns the standard of code rather than functionality
core
Describes core required functionality
severe
Has a significant impact on many users
While implementing Easy Racer scenario 10, I observe that the blocking operation does not stop during a call to
relent()
, even though the Task should be cancelled (it's also possible the Task isn't cancelled due to #20).When running scenario 10, this is observed in the scenario server logs:
(Notice that the
Current load
remains high even when the server has signaled to the client to stop the CPU-intensive operation (the lastscenario=10 Load while blocking: ...
line)). The relevant part of the CPU-intensive blocking operation is implemented here.The alternative implementation) that checks Thread.interrupted() instead of
relent()
works as expected:(Notice that the
Current load =
drops to0.008...
almost as soon as the client receives the signal to stop)The text was updated successfully, but these errors were encountered: