[concurrency-interest] Does j.u.c.SynchronousQueue's use of Interrupt interfere with NIO AbstractInterruptibleChannel?
esarge at pobox.com
Mon Jun 3 19:43:54 EDT 2013
I've been chasing down issues with Apache Flume and Log4j2. I ~may~ be able
to explain a problem as SynchronousQueue interacting with
AbstractInterruptibleChannel but I'm not convinced my understanding is
sufficient to be certain. I decided it might be worth asking the question
here - if only for my own learning.
The problem appears to be that if a put or a take fail on the
SynchronousQueue in the AvroIpcClient then it causes an interrupt on the
Flume FileChannel thread (which uses NIO FileChannel which inherits from
The docs and code for the NIO channels show that it does not expect to be
Is SynchronousQueue actually interrupting the thread or is the use of
Interrupt in that class doing something else?
Many thanks in advance,
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Concurrency-interest