[ https://jira.terracotta.org/jira//browse/CDV-92?page=all ]
Hung Huynh closed CDV-92. ------------------------- > Need to handle Thread interrupt and InterruptedException during lock aquire > and wait() > -------------------------------------------------------------------------------------- > > Key: CDV-92 > URL: https://jira.terracotta.org/jira//browse/CDV-92 > Project: Community Development > Issue Type: Bug > Components: DSO:L1 > Reporter: Antonio Si > Assigned To: Hung Huynh > Priority: 3 Minor > > Currently we differ from the standard JDK behavior wrt Thread.interrupt() in > the following ways. > 1) when a Thread is interrupted we may throw TCRuntimeException() wrapped > around InterruptedException even during lockAquire(). The correct behavior is > to set the interrupted flag and not throw interrupted exception. > 2) when a Thread is interrupted we may throw TCRuntimeException() wrapped > around InterruptedException during wait(). The correct behavor is to throw > interrupted exception AFTER the lock is granted. > This difference in behavior causes failures in FutureTaskTest occassionally. > What happen is that when a FutureTask is shared and if one node try to cancel > the task while the other node tries to run a task. Since a cancellation is > done by interrupting a thread, if the interrupt happen when the FutureTask is > requesting a dso lock, it will throw TCRuntimeException. > This also affects Reentrant lock behavior and fix this will fix that too. -- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: https://jira.terracotta.org/jira//secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira _______________________________________________ tc-dev mailing list [email protected] http://lists.terracotta.org/mailman/listinfo/tc-dev
