vinayak malik created PHOENIX-5602:
--------------------------------------
Summary: Restart the Phoenix-query Server |
org.apache.phoenix.queryserver.server.QueryServer: Caught an error trying to
register with the load balancer | NodeExist
Key: PHOENIX-5602
URL: https://issues.apache.org/jira/browse/PHOENIX-5602
Project: Phoenix
Issue Type: Bug
Affects Versions: 5.0.0
Reporter: vinayak malik
Working with [~prabodh.mitra]
phoenix-queryserver : Version : 5.0.0.3.1.0.0-78
hbase-client : Version : 2.0.2.3.1.0.0-78
hadoop : Version : 3.1.1
[~elserj] Please take a look, if this issue has been identified?
We have identified one issue, while taking a restart of phoenix-query
server.{color:#FF0000} It throws the given below exception{color} : Node
already exist. It seems like it does not unregister the node from Zookeeper
while restarting the node.
As per the flow
we have checked the code base from
[https://github.com/apache/phoenix-queryserver/blob/master/queryserver/src/main/java/org/apache/phoenix/queryserver/server/QueryServer.java]
As per our observation & understanding the unregistration does not happen when
we {color:#FF0000}restart{color} the server. But NORMAL Stop & start works
seamlessly fine.
{color:#FF0000}Exception:{color}
2019-12-03 02:59:58,789 DEBUG
org.apache.phoenix.queryserver.server.QueryServer: Caught an error trying to
register with the load balancer
org.apache.zookeeper.KeeperException$NodeExistsException: KeeperErrorCode =
NodeExists for /phoenix/queryserver/<systemnodename:port>:
at org.apache.zookeeper.KeeperException.create(KeeperException.java:119)
at org.apache.zookeeper.KeeperException.create(KeeperException.java:51)
at org.apache.zookeeper.ZooKeeper.create(ZooKeeper.java:783)
at
org.apache.curator.framework.imps.CreateBuilderImpl$11.call(CreateBuilderImpl.java:740)
at
org.apache.curator.framework.imps.CreateBuilderImpl$11.call(CreateBuilderImpl.java:723)
at org.apache.curator.RetryLoop.callWithRetry(RetryLoop.java:109)
at
org.apache.curator.framework.imps.CreateBuilderImpl.pathInForeground(CreateBuilderImpl.java:720)
at
org.apache.curator.framework.imps.CreateBuilderImpl.protectedPathInForeground(CreateBuilderImpl.java:484)
at
org.apache.curator.framework.imps.CreateBuilderImpl.forPath(CreateBuilderImpl.java:474)
at
org.apache.curator.framework.imps.CreateBuilderImpl.forPath(CreateBuilderImpl.java:44)
at
org.apache.phoenix.queryserver.register.ZookeeperRegistry.registerServer(ZookeeperRegistry.java:55)
at
org.apache.phoenix.queryserver.server.QueryServer.registerToServiceProvider(QueryServer.java:318)
at
org.apache.phoenix.queryserver.server.QueryServer.run(QueryServer.java:244)
at org.apache.hadoop.util.ToolRunner.run(ToolRunner.java:76)
at
org.apache.phoenix.queryserver.server.QueryServer.main(QueryServer.java:526)
--
This message was sent by Atlassian Jira
(v8.3.4#803005)