hi Partick thank you for your reply, can I be avoid of this Exception through configration?
sender: Patrick Hunt [mailto:[email protected]] sendt time: 2010 6-28 8:10 receiver: [email protected] cc: zhengbing li topic: Re: coould anyone tell me why this zookeeper Exception happens? When a zk client closes its session it sends a close session request to the server. In some cases the client may not finalize it's side of the close before the server closes the session - including closing the socket. If this happens the client may output this message (read rc of -1 means "end of stream"). Nothing to worry about in this context. Patrick On 06/25/2010 08:05 PM, zhengbing li wrote: > hi: > when I exit my problem,fllowing message will be print: > Closing session: 0x229689222080036 > Closing ClientCnxn for session: 0x229689222080036 Exception while > closing send thread for session 0x229689222080036 : Read error rc = -1 > java.nio.DirectByteBuffer[pos=0 lim=4 cap=4] Disconnecting ClientCnxn > for session: 0x229689222080036 > Session: 0x229689222080036 closed > EventThread shut down > and this is corresponding zookeper LOG > > 2010-06-26 10:27:11,229 INFO org.apache.zookeeper.server.NIOServerCnxn: > Connected to /10.70.110.58:1661 lastZxid 0 > > 2010-06-26 10:27:11,229 INFO org.apache.zookeeper.server.NIOServerCnxn: > Creating new session 0x229689222080036 > > 2010-06-26 10:27:11,259 INFO org.apache.zookeeper.server.NIOServerCnxn: > Finished init of 0x229689222080036 valid:true > > 2010-06-26 10:27:25,797 INFO > org.apache.zookeeper.server.PrepRequestProcessor: Processed session > termination request for id: 0x229689222080036 > > 2010-06-26 10:27:25,849 INFO org.apache.zookeeper.server.NIOServerCnxn: > closing session:0x229689222080036 NIOServerCnxn: > java.nio.channels.SocketChannel[connected local=/10.137.97.73:2222 > remote=/10.70.110.58:1661] > > > > > >
