You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@zookeeper.apache.org by Satish Bhatti <ct...@gmail.com> on 2008/08/16 00:48:57 UTC

Client Termination Error

Has anybody come across the following error:

(1) Start up ZooKeeper on 2 machines.
(2) Connect 2 ZooKeeper clients, one per machine.
(3) Exit one of the clients with a <CTRL>-C.

The server that client was connected to goes into an unrecoverable error
state, and continuously spits the following out to the console:

ERROR - [NIOServerCxn.Factory:NIOServerCnxn$Factory@152] - FIXMSG
java.nio.channels.CancelledKeyException
   at gnu.java.nio.SelectionKeyImpl.readyOps(libgcj.so.81)
   at
com.yahoo.zookeeper.server.NIOServerCnxn$Factory.run(NIOServerCnxn.java:136)
ERROR - [NIOServerCxn.Factory:NIOServerCnxn$Factory@152] - FIXMSG
java.nio.channels.CancelledKeyException
   at gnu.java.nio.SelectionKeyImpl.readyOps(libgcj.so.81)
   at
com.yahoo.zookeeper.server.NIOServerCnxn$Factory.run(NIOServerCnxn.java:136)
ERROR - [NIOServerCxn.Factory:NIOServerCnxn$Factory@152] - FIXMSG
java.nio.channels.CancelledKeyException
   at gnu.java.nio.SelectionKeyImpl.readyOps(libgcj.so.81)
   at
com.yahoo.zookeeper.server.NIOServerCnxn$Factory.run(NIOServerCnxn.java:136)
ERROR - [NIOServerCxn.Factory:NIOServerCnxn$Factory@152] - FIXMSG
java.nio.channels.CancelledKeyException
   at gnu.java.nio.SelectionKeyImpl.readyOps(libgcj.so.81)
   at
com.yahoo.zookeeper.server.NIOServerCnxn$Factory.run(NIOServerCnxn.java:136)
ERROR - [NIOServerCxn.Factory:NIOServerCnxn$Factory@152] - FIXMSG
java.nio.channels.CancelledKeyException
   at gnu.java.nio.SelectionKeyImpl.readyOps(libgcj.so.81)
   at
com.yahoo.zookeeper.server.NIOServerCnxn$Factory.run(NIOServerCnxn.java:136)
ERROR - [NIOServerCxn.Factory:NIOServerCnxn$Factory@152] - FIXMSG
java.nio.channels.CancelledKeyException
   at gnu.java.nio.SelectionKeyImpl.readyOps(libgcj.so.81)
   at
com.yahoo.zookeeper.server.NIOServerCnxn$Factory.run(NIOServerCnxn.java:136)


Notes:
---------

I cannot reproduce this every time, but I can get it about 7 times out of
10.

ZooKeeper version
---------------------------
2.2.1. from SourceForge

OS (Ubuntu)
----
Linux 2.6.22-14-generic #1 SMP Fri Feb 1 04:59:50 UTC 2008 i686 GNU/Linux

Java VM (Sun JDK)
------------
java version "1.6.0_04"
Java(TM) SE Runtime Environment (build 1.6.0_04-b12)
Java HotSpot(TM) Server VM (build 10.0-b19, mixed mode)


Satish

Re: Client Termination Error

Posted by Satish Bhatti <ct...@gmail.com>.
Thanks Mahadev,
It was using Gnu Java.  The JAVA_HOME env var was not set up to use the Sun
JDK.  The perils of "borrowing" (stealing?) someone else's machine for
ZooKeeper testing! :)

On Fri, Aug 15, 2008 at 4:46 PM, Satish Bhatti <ct...@gmail.com> wrote:

> hmmm, you're right.  WTF!  I am supposed to be using Sun's JDK.  Let me
> check, that is not my machine, so maybe its using some crappy Gnu Java.
>
>
> On Fri, Aug 15, 2008 at 4:39 PM, Mahadev Konar <ma...@yahoo-inc.com>wrote:
>
>> Hi Satish,
>>  I see gnu.java* in your exceptions. Are you using gcj?
>>
>> mahadev
>>
>> > -----Original Message-----
>> > From: Satish Bhatti [mailto:cthd2001@gmail.com]
>> > Sent: Friday, August 15, 2008 3:49 PM
>> > To: zookeeper-user@hadoop.apache.org
>> > Subject: Client Termination Error
>> >
>> > Has anybody come across the following error:
>> >
>> > (1) Start up ZooKeeper on 2 machines.
>> > (2) Connect 2 ZooKeeper clients, one per machine.
>> > (3) Exit one of the clients with a <CTRL>-C.
>> >
>> > The server that client was connected to goes into an unrecoverable
>> error
>> > state, and continuously spits the following out to the console:
>> >
>> > ERROR - [NIOServerCxn.Factory:NIOServerCnxn$Factory@152] - FIXMSG
>> > java.nio.channels.CancelledKeyException
>> >    at gnu.java.nio.SelectionKeyImpl.readyOps(libgcj.so.81)
>> >    at
>> >
>> com.yahoo.zookeeper.server.NIOServerCnxn$Factory.run(NIOServerCnxn.java:
>> 13
>> > 6)
>> > ERROR - [NIOServerCxn.Factory:NIOServerCnxn$Factory@152] - FIXMSG
>> > java.nio.channels.CancelledKeyException
>> >    at gnu.java.nio.SelectionKeyImpl.readyOps(libgcj.so.81)
>> >    at
>> >
>> com.yahoo.zookeeper.server.NIOServerCnxn$Factory.run(NIOServerCnxn.java:
>> 13
>> > 6)
>> > ERROR - [NIOServerCxn.Factory:NIOServerCnxn$Factory@152] - FIXMSG
>> > java.nio.channels.CancelledKeyException
>> >    at gnu.java.nio.SelectionKeyImpl.readyOps(libgcj.so.81)
>> >    at
>> >
>> com.yahoo.zookeeper.server.NIOServerCnxn$Factory.run(NIOServerCnxn.java:
>> 13
>> > 6)
>> > ERROR - [NIOServerCxn.Factory:NIOServerCnxn$Factory@152] - FIXMSG
>> > java.nio.channels.CancelledKeyException
>> >    at gnu.java.nio.SelectionKeyImpl.readyOps(libgcj.so.81)
>> >    at
>> >
>> com.yahoo.zookeeper.server.NIOServerCnxn$Factory.run(NIOServerCnxn.java:
>> 13
>> > 6)
>> > ERROR - [NIOServerCxn.Factory:NIOServerCnxn$Factory@152] - FIXMSG
>> > java.nio.channels.CancelledKeyException
>> >    at gnu.java.nio.SelectionKeyImpl.readyOps(libgcj.so.81)
>> >    at
>> >
>> com.yahoo.zookeeper.server.NIOServerCnxn$Factory.run(NIOServerCnxn.java:
>> 13
>> > 6)
>> > ERROR - [NIOServerCxn.Factory:NIOServerCnxn$Factory@152] - FIXMSG
>> > java.nio.channels.CancelledKeyException
>> >    at gnu.java.nio.SelectionKeyImpl.readyOps(libgcj.so.81)
>> >    at
>> >
>> com.yahoo.zookeeper.server.NIOServerCnxn$Factory.run(NIOServerCnxn.java:
>> 13
>> > 6)
>> >
>> >
>> > Notes:
>> > ---------
>> >
>> > I cannot reproduce this every time, but I can get it about 7 times out
>> of
>> > 10.
>> >
>> > ZooKeeper version
>> > ---------------------------
>> > 2.2.1. from SourceForge
>> >
>> > OS (Ubuntu)
>> > ----
>> > Linux 2.6.22-14-generic #1 SMP Fri Feb 1 04:59:50 UTC 2008 i686
>> GNU/Linux
>> >
>> > Java VM (Sun JDK)
>> > ------------
>> > java version "1.6.0_04"
>> > Java(TM) SE Runtime Environment (build 1.6.0_04-b12)
>> > Java HotSpot(TM) Server VM (build 10.0-b19, mixed mode)
>> >
>> >
>> > Satish
>>
>
>

Re: Client Termination Error

Posted by Satish Bhatti <ct...@gmail.com>.
hmmm, you're right.  WTF!  I am supposed to be using Sun's JDK.  Let me
check, that is not my machine, so maybe its using some crappy Gnu Java.

On Fri, Aug 15, 2008 at 4:39 PM, Mahadev Konar <ma...@yahoo-inc.com>wrote:

> Hi Satish,
>  I see gnu.java* in your exceptions. Are you using gcj?
>
> mahadev
>
> > -----Original Message-----
> > From: Satish Bhatti [mailto:cthd2001@gmail.com]
> > Sent: Friday, August 15, 2008 3:49 PM
> > To: zookeeper-user@hadoop.apache.org
> > Subject: Client Termination Error
> >
> > Has anybody come across the following error:
> >
> > (1) Start up ZooKeeper on 2 machines.
> > (2) Connect 2 ZooKeeper clients, one per machine.
> > (3) Exit one of the clients with a <CTRL>-C.
> >
> > The server that client was connected to goes into an unrecoverable
> error
> > state, and continuously spits the following out to the console:
> >
> > ERROR - [NIOServerCxn.Factory:NIOServerCnxn$Factory@152] - FIXMSG
> > java.nio.channels.CancelledKeyException
> >    at gnu.java.nio.SelectionKeyImpl.readyOps(libgcj.so.81)
> >    at
> >
> com.yahoo.zookeeper.server.NIOServerCnxn$Factory.run(NIOServerCnxn.java:
> 13
> > 6)
> > ERROR - [NIOServerCxn.Factory:NIOServerCnxn$Factory@152] - FIXMSG
> > java.nio.channels.CancelledKeyException
> >    at gnu.java.nio.SelectionKeyImpl.readyOps(libgcj.so.81)
> >    at
> >
> com.yahoo.zookeeper.server.NIOServerCnxn$Factory.run(NIOServerCnxn.java:
> 13
> > 6)
> > ERROR - [NIOServerCxn.Factory:NIOServerCnxn$Factory@152] - FIXMSG
> > java.nio.channels.CancelledKeyException
> >    at gnu.java.nio.SelectionKeyImpl.readyOps(libgcj.so.81)
> >    at
> >
> com.yahoo.zookeeper.server.NIOServerCnxn$Factory.run(NIOServerCnxn.java:
> 13
> > 6)
> > ERROR - [NIOServerCxn.Factory:NIOServerCnxn$Factory@152] - FIXMSG
> > java.nio.channels.CancelledKeyException
> >    at gnu.java.nio.SelectionKeyImpl.readyOps(libgcj.so.81)
> >    at
> >
> com.yahoo.zookeeper.server.NIOServerCnxn$Factory.run(NIOServerCnxn.java:
> 13
> > 6)
> > ERROR - [NIOServerCxn.Factory:NIOServerCnxn$Factory@152] - FIXMSG
> > java.nio.channels.CancelledKeyException
> >    at gnu.java.nio.SelectionKeyImpl.readyOps(libgcj.so.81)
> >    at
> >
> com.yahoo.zookeeper.server.NIOServerCnxn$Factory.run(NIOServerCnxn.java:
> 13
> > 6)
> > ERROR - [NIOServerCxn.Factory:NIOServerCnxn$Factory@152] - FIXMSG
> > java.nio.channels.CancelledKeyException
> >    at gnu.java.nio.SelectionKeyImpl.readyOps(libgcj.so.81)
> >    at
> >
> com.yahoo.zookeeper.server.NIOServerCnxn$Factory.run(NIOServerCnxn.java:
> 13
> > 6)
> >
> >
> > Notes:
> > ---------
> >
> > I cannot reproduce this every time, but I can get it about 7 times out
> of
> > 10.
> >
> > ZooKeeper version
> > ---------------------------
> > 2.2.1. from SourceForge
> >
> > OS (Ubuntu)
> > ----
> > Linux 2.6.22-14-generic #1 SMP Fri Feb 1 04:59:50 UTC 2008 i686
> GNU/Linux
> >
> > Java VM (Sun JDK)
> > ------------
> > java version "1.6.0_04"
> > Java(TM) SE Runtime Environment (build 1.6.0_04-b12)
> > Java HotSpot(TM) Server VM (build 10.0-b19, mixed mode)
> >
> >
> > Satish
>

RE: Client Termination Error

Posted by Mahadev Konar <ma...@yahoo-inc.com>.
Hi Satish,
 I see gnu.java* in your exceptions. Are you using gcj? 

mahadev

> -----Original Message-----
> From: Satish Bhatti [mailto:cthd2001@gmail.com]
> Sent: Friday, August 15, 2008 3:49 PM
> To: zookeeper-user@hadoop.apache.org
> Subject: Client Termination Error
> 
> Has anybody come across the following error:
> 
> (1) Start up ZooKeeper on 2 machines.
> (2) Connect 2 ZooKeeper clients, one per machine.
> (3) Exit one of the clients with a <CTRL>-C.
> 
> The server that client was connected to goes into an unrecoverable
error
> state, and continuously spits the following out to the console:
> 
> ERROR - [NIOServerCxn.Factory:NIOServerCnxn$Factory@152] - FIXMSG
> java.nio.channels.CancelledKeyException
>    at gnu.java.nio.SelectionKeyImpl.readyOps(libgcj.so.81)
>    at
>
com.yahoo.zookeeper.server.NIOServerCnxn$Factory.run(NIOServerCnxn.java:
13
> 6)
> ERROR - [NIOServerCxn.Factory:NIOServerCnxn$Factory@152] - FIXMSG
> java.nio.channels.CancelledKeyException
>    at gnu.java.nio.SelectionKeyImpl.readyOps(libgcj.so.81)
>    at
>
com.yahoo.zookeeper.server.NIOServerCnxn$Factory.run(NIOServerCnxn.java:
13
> 6)
> ERROR - [NIOServerCxn.Factory:NIOServerCnxn$Factory@152] - FIXMSG
> java.nio.channels.CancelledKeyException
>    at gnu.java.nio.SelectionKeyImpl.readyOps(libgcj.so.81)
>    at
>
com.yahoo.zookeeper.server.NIOServerCnxn$Factory.run(NIOServerCnxn.java:
13
> 6)
> ERROR - [NIOServerCxn.Factory:NIOServerCnxn$Factory@152] - FIXMSG
> java.nio.channels.CancelledKeyException
>    at gnu.java.nio.SelectionKeyImpl.readyOps(libgcj.so.81)
>    at
>
com.yahoo.zookeeper.server.NIOServerCnxn$Factory.run(NIOServerCnxn.java:
13
> 6)
> ERROR - [NIOServerCxn.Factory:NIOServerCnxn$Factory@152] - FIXMSG
> java.nio.channels.CancelledKeyException
>    at gnu.java.nio.SelectionKeyImpl.readyOps(libgcj.so.81)
>    at
>
com.yahoo.zookeeper.server.NIOServerCnxn$Factory.run(NIOServerCnxn.java:
13
> 6)
> ERROR - [NIOServerCxn.Factory:NIOServerCnxn$Factory@152] - FIXMSG
> java.nio.channels.CancelledKeyException
>    at gnu.java.nio.SelectionKeyImpl.readyOps(libgcj.so.81)
>    at
>
com.yahoo.zookeeper.server.NIOServerCnxn$Factory.run(NIOServerCnxn.java:
13
> 6)
> 
> 
> Notes:
> ---------
> 
> I cannot reproduce this every time, but I can get it about 7 times out
of
> 10.
> 
> ZooKeeper version
> ---------------------------
> 2.2.1. from SourceForge
> 
> OS (Ubuntu)
> ----
> Linux 2.6.22-14-generic #1 SMP Fri Feb 1 04:59:50 UTC 2008 i686
GNU/Linux
> 
> Java VM (Sun JDK)
> ------------
> java version "1.6.0_04"
> Java(TM) SE Runtime Environment (build 1.6.0_04-b12)
> Java HotSpot(TM) Server VM (build 10.0-b19, mixed mode)
> 
> 
> Satish