7043425: (fc) ClosedByInterruptException thrown but interrupt status not set

Alan Bateman Alan.Bateman at oracle.com
Tue May 10 10:12:59 PDT 2011


Here's an embarrassing one. If a thread closing a FileChannel is 
interrupted while it is waiting for other threads to complete their I/O 
operations then the interrupt status is not reset. The JavaDB/Derby 
folks ran into this while testing with jdk7-b141. Thanks for David 
Holmes for spotting the bug. The webrev with the fix is here:

http://cr.openjdk.java.net/~alanb/7043425/webrev/

Thanks,
Alan.


More information about the nio-dev mailing list