zookeeper-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Benjamin Jaton <benjamin.ja...@gmail.com>
Subject java.net.SocketTimeoutException: Read timed out
Date Wed, 06 Jul 2016 21:51:10 GMT
Hello,

Quick question, which timeout is this? would that be the syncLimit or the
initLimit?
Since the follower started following for a while I'm guessing it's the
syncLimit?

Thanks!
Ben


2016-07-06 03:05:49,791 [myid:2] - INFO
[QuorumPeer[myid=2]/0:0:0:0:0:0:0:0:2181:Follower@63] - FOLLOWING - LEADER
ELECTION TOOK - 5521
(...)
2016-07-06 03:29:40,713 [myid:2] - INFO  [NIOServerCxn.Factory:
0.0.0.0/0.0.0.0:2181:ZooKeeperServer@868] - Client attempting to establish
new session at /10.11.8.0:50510
2016-07-06 03:29:41,524 [myid:2] - INFO
[CommitProcessor:2:ZooKeeperServer@617] - Established session
0x255bfabc47c0013 with negotiated timeout 60000 for client /10.11.8.0:50510
2016-07-06 03:29:41,524 [myid:2] - INFO  [NIOServerCxn.Factory:
0.0.0.0/0.0.0.0:2181:ZooKeeperServer@892] - got auth packet /10.11.8.0:50510
2016-07-06 03:29:41,524 [myid:2] - INFO  [NIOServerCxn.Factory:
0.0.0.0/0.0.0.0:2181:ZooKeeperServer@926] - auth success /10.11.8.0:50510
2016-07-06 03:29:41,524 [myid:2] - INFO  [NIOServerCxn.Factory:
0.0.0.0/0.0.0.0:2181:ZooKeeperServer@892] - got auth packet /10.11.8.0:50510
2016-07-06 03:29:41,524 [myid:2] - INFO  [NIOServerCxn.Factory:
0.0.0.0/0.0.0.0:2181:ZooKeeperServer@926] - auth success /10.11.8.0:50510
2016-07-06 03:29:41,524 [myid:2] - WARN  [NIOServerCxn.Factory:
0.0.0.0/0.0.0.0:2181:NIOServerCnxn@357] - caught end of stream exception
EndOfStreamException: Unable to read additional data from client sessionid
0x255bfabc47c0013, likely client has closed socket
    at
org.apache.zookeeper.server.NIOServerCnxn.doIO(NIOServerCnxn.java:228)
    at
org.apache.zookeeper.server.NIOServerCnxnFactory.run(NIOServerCnxnFactory.java:208)
    at java.lang.Thread.run(Thread.java:745)
2016-07-06 03:29:41,524 [myid:2] - INFO  [NIOServerCxn.Factory:
0.0.0.0/0.0.0.0:2181:NIOServerCnxn@1007] - Closed socket connection for
client /10.11.8.0:50510 which had sessionid 0x255bfabc47c0013
2016-07-06 03:29:42,974 [myid:2] - ERROR
[CommitProcessor:2:NIOServerCnxn@178] - Unexpected Exception:
java.nio.channels.CancelledKeyException
    at sun.nio.ch.SelectionKeyImpl.ensureValid(SelectionKeyImpl.java:73)
    at sun.nio.ch.SelectionKeyImpl.interestOps(SelectionKeyImpl.java:77)
    at
org.apache.zookeeper.server.NIOServerCnxn.sendBuffer(NIOServerCnxn.java:151)
    at
org.apache.zookeeper.server.NIOServerCnxn.sendResponse(NIOServerCnxn.java:1081)
    at
org.apache.zookeeper.server.FinalRequestProcessor.processRequest(FinalRequestProcessor.java:404)
    at
org.apache.zookeeper.server.quorum.CommitProcessor.run(CommitProcessor.java:74)
2016-07-06 03:29:56,265 [myid:2] - WARN
[QuorumPeer[myid=2]/0:0:0:0:0:0:0:0:2181:Follower@89] - Exception when
following the leader
*java.net.SocketTimeoutException: Read timed out*
    at java.net.SocketInputStream.socketRead0(Native Method)
    at java.net.SocketInputStream.socketRead(SocketInputStream.java:116)
    at java.net.SocketInputStream.read(SocketInputStream.java:170)
    at java.net.SocketInputStream.read(SocketInputStream.java:141)
    at java.io.BufferedInputStream.fill(BufferedInputStream.java:246)
    at java.io.BufferedInputStream.read(BufferedInputStream.java:265)
    at java.io.DataInputStream.readInt(DataInputStream.java:387)
    at
org.apache.jute.BinaryInputArchive.readInt(BinaryInputArchive.java:63)
    at
org.apache.zookeeper.server.quorum.QuorumPacket.deserialize(QuorumPacket.java:83)
    at
org.apache.jute.BinaryInputArchive.readRecord(BinaryInputArchive.java:103)
    at
org.apache.zookeeper.server.quorum.Learner.readPacket(Learner.java:153)
    at
org.apache.zookeeper.server.quorum.Follower.followLeader(Follower.java:85)
    at
org.apache.zookeeper.server.quorum.QuorumPeer.run(QuorumPeer.java:786)
2016-07-06 03:29:56,265 [myid:2] - INFO
[QuorumPeer[myid=2]/0:0:0:0:0:0:0:0:2181:Follower@166] - shutdown called
java.lang.Exception: shutdown Follower
    at
org.apache.zookeeper.server.quorum.Follower.shutdown(Follower.java:166)
    at
org.apache.zookeeper.server.quorum.QuorumPeer.run(QuorumPeer.java:790)

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