From dev-return-58887-archive-asf-public=cust-asf.ponee.io@phoenix.apache.org Wed Dec 4 09:40:04 2019 Return-Path: X-Original-To: archive-asf-public@cust-asf.ponee.io Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [207.244.88.153]) by mx-eu-01.ponee.io (Postfix) with SMTP id 0812318065B for ; Wed, 4 Dec 2019 10:40:03 +0100 (CET) Received: (qmail 96802 invoked by uid 500); 4 Dec 2019 09:40:02 -0000 Mailing-List: contact dev-help@phoenix.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@phoenix.apache.org Delivered-To: mailing list dev@phoenix.apache.org Received: (qmail 96681 invoked by uid 99); 4 Dec 2019 09:40:02 -0000 Received: from mailrelay1-us-west.apache.org (HELO mailrelay1-us-west.apache.org) (209.188.14.139) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 04 Dec 2019 09:40:02 +0000 Received: from jira-he-de.apache.org (static.172.67.40.188.clients.your-server.de [188.40.67.172]) by mailrelay1-us-west.apache.org (ASF Mail Server at mailrelay1-us-west.apache.org) with ESMTP id 78456E3065 for ; Wed, 4 Dec 2019 09:40:01 +0000 (UTC) Received: from jira-he-de.apache.org (localhost.localdomain [127.0.0.1]) by jira-he-de.apache.org (ASF Mail Server at jira-he-de.apache.org) with ESMTP id 4494D780547 for ; Wed, 4 Dec 2019 09:40:00 +0000 (UTC) Date: Wed, 4 Dec 2019 09:40:00 +0000 (UTC) From: "vinayak malik (Jira)" To: dev@phoenix.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Created] (PHOENIX-5602) Restart the Phoenix-query Server | org.apache.phoenix.queryserver.server.QueryServer: Caught an error trying to register with the load balancer | NodeExist MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 vinayak malik created PHOENIX-5602: -------------------------------------- Summary: Restart the Phoenix-query Server | org.apache.phoenix= .queryserver.server.QueryServer: Caught an error trying to register with th= e 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]=20 phoenix-queryserver : Version :=C2=A05.0.0.3.1.0.0-78 hbase-client : Version : 2.0.2.3.1.0.0-78 hadoop : Version : 3.1.1 [~elserj]=C2=A0Please take a look, if this issue has been identified? We have identified one issue, while taking a restart of phoenix-query serve= r.{color:#FF0000} It throws the given below exception{color} : Node already= exist. It seems like it does not unregister the node from Zookeeper while= =C2=A0 restarting the node. As per the flow=C2=A0 we have checked the code base from=C2=A0 [https://github.com/apache/phoenix= -queryserver/blob/master/queryserver/src/main/java/org/apache/phoenix/query= server/server/QueryServer.java] As per our observation & understanding the unregistration does not happen w= hen we {color:#FF0000}restart{color} the server. But NORMAL Stop & start wo= rks seamlessly fine. {color:#FF0000}Exception:{color}=C2=A0 2019-12-03 02:59:58,789 DEBUG org.apache.phoenix.queryserver.server.QuerySe= rver: Caught an error trying to register with the load balancer org.apache.zookeeper.KeeperException$NodeExistsException: KeeperErrorCode = =3D NodeExists for /phoenix/queryserver/: =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0at org.apache.zookeeper.Kee= perException.create(KeeperException.java:119) =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0at org.apache.zookeeper.Kee= perException.create(KeeperException.java:51) =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0at org.apache.zookeeper.Zoo= Keeper.create(ZooKeeper.java:783) =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0at org.apache.curator.frame= work.imps.CreateBuilderImpl$11.call(CreateBuilderImpl.java:740) =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0at org.apache.curator.frame= work.imps.CreateBuilderImpl$11.call(CreateBuilderImpl.java:723) =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0at org.apache.curator.Retry= Loop.callWithRetry(RetryLoop.java:109) =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0at org.apache.curator.frame= work.imps.CreateBuilderImpl.pathInForeground(CreateBuilderImpl.java:720) =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0at org.apache.curator.frame= work.imps.CreateBuilderImpl.protectedPathInForeground(CreateBuilderImpl.jav= a:484) =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0at org.apache.curator.frame= work.imps.CreateBuilderImpl.forPath(CreateBuilderImpl.java:474) =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0at org.apache.curator.frame= work.imps.CreateBuilderImpl.forPath(CreateBuilderImpl.java:44) =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0at org.apache.phoenix.query= server.register.ZookeeperRegistry.registerServer(ZookeeperRegistry.java:55) =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0at org.apache.phoenix.query= server.server.QueryServer.registerToServiceProvider(QueryServer.java:318) =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0at org.apache.phoenix.query= server.server.QueryServer.run(QueryServer.java:244) =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0at org.apache.hadoop.util.T= oolRunner.run(ToolRunner.java:76) =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0at org.apache.phoenix.query= server.server.QueryServer.main(QueryServer.java:526) -- This message was sent by Atlassian Jira (v8.3.4#803005)