InterruptedException is rather tricky because the semantics of
Thread.isInterrupted() is rather vague. specifically, it is unclear why someone
would interrupt a thread. usually Thread.interrupt() is used to shut things
down which requires special handing. thus we propagate it. for example, i'm not
clear how you shutdown your poll() method. an easy way to do it would be to use
From: Mahadev Konar [mailto:maha...@yahoo-inc.com]
Sent: Tuesday, January 06, 2009 7:05 PM
Subject: Re: InterruptedException
The interrupt exception would be thrown in case any other thread tries to
interrupt zookeeper threads during a client call (its not really
interrupting the server but interrupting the client threads). Its like any
synchronous operation that waits throwing an interrupted exception if
interrupted by any other thread.
PS: ill try responding to your other emails as well as soon as possible :).
On 1/6/09 7:00 PM, "Kevin Burton" <bur...@spinn3r.com> wrote:
> Why does ZK throw InterruptedException?
> Shouldn't this be a KeeperException instead of a java system exception when
> interrupt() is called?
> The javadoc just says:
> "If the server transaction is interrupted"
> If this is a ZK related it should be KeeperException...