zookeeper-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Owen Kim <ohech...@gmail.com>
Subject Re: solution for java.nio.channels.CancelledKeyException
Date Thu, 30 Oct 2014 20:20:59 GMT
For posterity then, I've seen similar issues with Java 1.6, too.

On Thu, Oct 30, 2014 at 9:11 AM, Ben Hsu <ben.hsu@criticalmedia.com> wrote:

> Hello
>
> I am sending this to the mailing list in case other people in the future
> have this problem
>
> I had been seeing this error:
>
> java.nio.channels.CancelledKeyException
>    at gnu.java.nio.SelectionKeyImpl.readyOps(libgcj.so.10)
>    at
>
> org.apache.zookeeper.server.NIOServerCnxnFactory.run(NIOServerCnxnFactory.java:187)
>    at java.lang.Thread.run(libgcj.so.10)
>
>
> and it was causing writes to be slow
>
> After some digging I found it was because I was using an outdated version
> of java: upgrading from 1.5 to 1.7 fixed this
>
> (relevant xkcd: http://xkcd.com/979/ )
>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message