[rabbitmq-discuss] Java Client: Establishing Connections is unterruptible
Alain O'Dea
alain.odea at gmail.com
Wed Dec 4 14:18:49 GMT 2013
In the Java Client it uses BlockingCell#uninterruptibleGet to perform
connection. That method catches and buries InterruptedException as
shown at (BlockingCell:91):
https://github.com/rabbitmq/rabbitmq-java-client/blob/d9b22339ea9b3e0cd28a2dcf790b3162748828b4/src/com/rabbitmq/utility/BlockingCell.java#L91
This prevents normal interruption from functioning. It essentially
blocks normal kill signals or in-process interrupts. This prevented
Verafin from interrupting a Thread that was in the middle of opening a
Connection to RabbitMQ and forced Verafin to come up with an ugly
workaround.
Why is the InterruptedException caught and buried?
Thanks,
Alain
More information about the rabbitmq-discuss
mailing list