[
https://issues.apache.org/jira/browse/HBASE-14163?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14644985#comment-14644985
]
Allen Wittenauer commented on HBASE-14163:
------------------------------------------
I can reproduce this repeatedly using master.
# untar a fresh install with nothing configured except what ships out of the box
# bin/hbase master start
# let it start up
# in another window, bin/hbase master stop
Both processes are now looping:
{code}
2015-07-28 13:16:11,985 INFO
[10.248.3.81:53113.activeMasterManager-SendThread(localhost:2181)]
zookeeper.ClientCnxn: Opening socket connection to server
localhost/127.0.0.1:2181. Will not attempt to authenticate using SASL (unknown
error)
2015-07-28 13:16:11,985 WARN
[10.248.3.81:53113.activeMasterManager-SendThread(localhost:2181)]
zookeeper.ClientCnxn: Session 0x14ed64a3ddd0004 for server null, unexpected
error, closing socket connection and attempting reconnect
java.net.ConnectException: Connection refused
at sun.nio.ch.SocketChannelImpl.checkConnect(Native Method)
at
sun.nio.ch.SocketChannelImpl.finishConnect(SocketChannelImpl.java:739)
at
org.apache.zookeeper.ClientCnxnSocketNIO.doTransport(ClientCnxnSocketNIO.java:361)
at org.apache.zookeeper.ClientCnxn$SendThread.run(ClientCnxn.java:1081)
2015-07-28 13:16:12,603 INFO
[10.248.3.81:53113.activeMasterManager-SendThread(localhost:2181)]
zookeeper.ClientCnxn: Opening socket connection to server
localhost/0:0:0:0:0:0:0:1:2181. Will not attempt to authenticate using SASL
(unknown error)
2015-07-28 13:16:12,603 WARN
[10.248.3.81:53113.activeMasterManager-SendThread(localhost:2181)]
zookeeper.ClientCnxn: Session 0x14ed64a3ddd0004 for server null, unexpected
error, closing socket connection and attempting reconnect
java.net.ConnectException: Connection refused
at sun.nio.ch.SocketChannelImpl.checkConnect(Native Method)
at
sun.nio.ch.SocketChannelImpl.finishConnect(SocketChannelImpl.java:739)
at
org.apache.zookeeper.ClientCnxnSocketNIO.doTransport(ClientCnxnSocketNIO.java:361)
at org.apache.zookeeper.ClientCnxn$SendThread.run(ClientCnxn.java:1081)
{code}
... until a kill or ctrl-c is sent.
> hbase master stop loops both processes forever
> ----------------------------------------------
>
> Key: HBASE-14163
> URL: https://issues.apache.org/jira/browse/HBASE-14163
> Project: HBase
> Issue Type: Bug
> Affects Versions: 2.0.0
> Reporter: Allen Wittenauer
>
> It would appear that there is an infinite loop in the zk client connection
> code when performing a master stop when no external zk servers are available.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)