From user-return-12384-archive-asf-public=cust-asf.ponee.io@zookeeper.apache.org Thu Dec 5 15:08:08 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 AF848180643 for ; Thu, 5 Dec 2019 16:08:07 +0100 (CET) Received: (qmail 64003 invoked by uid 500); 5 Dec 2019 15:08:06 -0000 Mailing-List: contact user-help@zookeeper.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: user@zookeeper.apache.org Delivered-To: mailing list user@zookeeper.apache.org Received: (qmail 63851 invoked by uid 99); 5 Dec 2019 15:08:05 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd4-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 05 Dec 2019 15:08:05 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd4-us-west.apache.org (ASF Mail Server at spamd4-us-west.apache.org) with ESMTP id 27791C1D07 for ; Thu, 5 Dec 2019 15:08:05 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd4-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 0 X-Spam-Level: X-Spam-Status: No, score=0 tagged_above=-999 required=6.31 tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, HTML_MESSAGE=0.2, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H2=-0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, URIBL_BLOCKED=0.001] autolearn=disabled Authentication-Results: spamd4-us-west.apache.org (amavisd-new); dkim=pass (2048-bit key) header.d=gmail.com Received: from mx1-ec2-va.apache.org ([10.40.0.8]) by localhost (spamd4-us-west.apache.org [10.40.0.11]) (amavisd-new, port 10024) with ESMTP id lidliVsgizMC for ; Thu, 5 Dec 2019 15:08:03 +0000 (UTC) Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=209.85.167.182; helo=mail-oi1-f182.google.com; envelope-from=eolivelli@gmail.com; receiver= Received: from mail-oi1-f182.google.com (mail-oi1-f182.google.com [209.85.167.182]) by mx1-ec2-va.apache.org (ASF Mail Server at mx1-ec2-va.apache.org) with ESMTPS id 11993BC531 for ; Thu, 5 Dec 2019 15:08:03 +0000 (UTC) Received: by mail-oi1-f182.google.com with SMTP id i1so3001587oie.8 for ; Thu, 05 Dec 2019 07:08:03 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to; bh=aEFraL4F0/4eEDEWYpoaM6lCjgtW96YH5b3+lMSZ19A=; b=Hqjx3yGzPFwAs40uHjShOZTaNSO/iVN2bgwt8Lf0f1B78mHrJgFNbSw2Py2TJ2un8D s+hjq1rtzYAxhn2mT20nCIfq9saR+Fl8oa9467YRiXmHibFUNKYnzrvT9wNbEYjoYEjP oBZMtv6dz33zwB5BnyMmnqA8bCy4/BoJNsVHKepFUYH1ILREvZy8MY8khUmUpIspoY9v 5H7nQ7Roex0T2EKuFwkyEIehkh30SBjRWCue6ZzZuBFY6+sRqrA1YTmHZwhKpda4z0Zv FS5LlqEhrrXhqOqoz0ikrsjPrP1awqgG7ApWH0vRKoQ9FXa533flagxvE9dY03AXcw11 9i8Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to; bh=aEFraL4F0/4eEDEWYpoaM6lCjgtW96YH5b3+lMSZ19A=; b=Syg5MeSbris6hGsOifGsDJUT//fvSH7I6vSV2owl5qyVCN33khtQ4oaUBlbM/Mzl0b 5pkLymMDMqD2fNe/UG6S6B+fSmbzVlIaoBEGEsnTLiVf32ugeX5MXV1J3NLDEOdm51Nw 47zuIsflZnrcd9WZSnOWg8kxtEN2ZMuHbuLm/0RDJrjW4Y+Iyvl4N7y5P41DKjsu7vaO 2DxJ3+P66vvFOd4SwXnL85f6Kb+sKgcjDCXJI+VS6s0x79uYgiAPjgkQXIVWJTW2IBbe qRvmY4eUeO7ZUr6BgQ8hS0Iux6r90SnIVi1xfjChOiJMLH53gKHiM3YD7HTcwcuYnlsy LhXg== X-Gm-Message-State: APjAAAWZDT+vFwQ1x6oEmcL5bjtBrinUV/ggbJ7MkM7wa3rQeLLZugf+ I4j+9lbd9LLJVUKWXxaw92mom/PuyOIgR5daIwhoRw== X-Google-Smtp-Source: APXvYqx8oBEJ8CwDHFgI8V3PgWH907NusAlwPYRErt/nz/HszUIDDwNy7uTEvPdze4aIrQSMOvQW9OOYAsBzqK9pp+w= X-Received: by 2002:aca:c692:: with SMTP id w140mr1943765oif.139.1575558482135; Thu, 05 Dec 2019 07:08:02 -0800 (PST) MIME-Version: 1.0 References: In-Reply-To: From: Enrico Olivelli Date: Thu, 5 Dec 2019 16:07:51 +0100 Message-ID: Subject: Re: java.lang.NullPointerException on some commands (stats, conf) To: UserZooKeeper Content-Type: multipart/alternative; boundary="000000000000a68ef50598f64b20" --000000000000a68ef50598f64b20 Content-Type: text/plain; charset="UTF-8" Mike Il giorno gio 5 dic 2019 alle ore 15:55 Mike Smotritsky < MikeSmotritsky@ongov.net> ha scritto: > Hey Mate, thank you very much for a very quick action on this issue. > If it's not very difficult can you please cut me a patched 3.5.6? > I think the best procedure is that you build your own patched version by yourself. Just "mvn clean install -DskipTests" on branch-3.5 Please be aware that the binaries you are going to use are not an official Apache release. I think it is fine, many companies run their own patched version of Open Source software Just my 2 cents Enrico > Again I very much appreciate your help! > > You guys have a very dedicated team on this project! > > Thanks and Regards, > Mike > > -----Original Message----- > From: Mate Szalay-Beko [mailto:mszalay@cloudera.com.INVALID] > Sent: Thursday, December 05, 2019 3:48 AM > To: user@zookeeper.apache.org > Subject: Re: java.lang.NullPointerException on some commands (stats, conf) > > Hi Mike, > > 3.5.6 was already released a couple of weeks ago. Norbert cherry-picked the > NPE fix to branch 3.5, so the question is if we will have a 3.5.7 or not. > BTW if it is a blocker for you, I can create you a personal / unofficial > patched version of 3.5.6 which contains this fix and then you can use it > until you would have 3.6 or 3.5.7 later. > > You can do this for yourself as well, by cloning the 3.5 branch ( > https://github.com/apache/zookeeper/tree/branch-3.5) and executing 'mvn > clean install -DskipTests'. If you also need the C-client, then 'mvn clean > install -DskipTests -Pfull-build'. It will not be an official release, but > in this case it is actually safe to use it, as the branch 3.5 now only > contains two small bugfixes on top of the stable 3.5.6. > > Cheers, > Mate > > On Tue, Dec 3, 2019 at 5:09 PM Mike Smotritsky > wrote: > > > Hi Enrico, I'd really love to have 3.5.6 released with this fix in. > > (Thanks to Mate for the very quick fix!) > > Cause my my Solr cluster keeps complaining about the Zookeeper state. > > > > Thanks and Regards, > > Mike > > > > > > > > -----Original Message----- > > From: Enrico Olivelli [mailto:eolivelli@gmail.com] > > Sent: Tuesday, December 03, 2019 10:07 AM > > To: UserZooKeeper > > Subject: Re: java.lang.NullPointerException on some commands (stats, > conf) > > > > Mike, > > just to be clear: 'we can cut new releases from 3.5 branch' means that > we > > are able to do it. > > > > But there are no plans to do it right now. > > > > If you need a release please let us know, we have just cut 3.5.6, there > > aren't so many changes cherry picked to branch-3.5 > > > > Enrico > > > > > > Il giorno lun 2 dic 2019 alle ore 18:45 Mike Smotritsky < > > MikeSmotritsky@ongov.net> ha scritto: > > > > > Hi Enrico, > > > > > > Thank you very much, that would be great! > > > > > > Thanks and Regards, > > > > > > Mike > > > > > > -----Original Message----- > > > From: Enrico Olivelli [mailto:eolivelli@gmail.com] > > > Sent: Monday, December 02, 2019 10:56 AM > > > To: UserZooKeeper > > > Subject: Re: java.lang.NullPointerException on some commands (stats, > > conf) > > > > > > Mike, > > > we can cut new releases from 3.5 branch. > > > It is current stable branch. > > > > > > We can cherry pick Mate's fix to branch-3.5 > > > > > > Enrico > > > > > > Il giorno lun 2 dic 2019 alle ore 16:36 Mike Smotritsky < > > > MikeSmotritsky@ongov.net> ha scritto: > > > > > > > Hey Mate, on the jira issue it says that the fix will come in with > > 3.6.0 > > > > The thing is that I'm using Zookeeper with SOLR and I'm afraid that > 3.6 > > > > will be incompatible with SOLR 8.x (I don't know what new features > will > > > be > > > > included in 3.6) > > > > > > > > You are not planning one more maintenance release for 3.5? > > > > > > > > Thanks and Regards, > > > > Mike > > > > > > > > > > > > -----Original Message----- > > > > From: Mate Szalay-Beko [mailto:mszalay@cloudera.com.INVALID] > > > > Sent: Thursday, November 28, 2019 11:12 AM > > > > To: user@zookeeper.apache.org > > > > Subject: Re: java.lang.NullPointerException on some commands (stats, > > > conf) > > > > > > > > FYI: https://jira.apache.org/jira/browse/ZOOKEEPER-3633 > > > > > > > > > > > > On Thu, Nov 28, 2019 at 4:53 PM Mate Szalay-Beko < > mszalay@cloudera.com > > > > > > > wrote: > > > > > > > > > Hi Mike, > > > > > > > > > > I was able to reproduce the issue. I guess in your config you are > > using > > > > > client SSL. You defined 'secureClientPort', but no regular > > > 'clientPort'. > > > > > I think we missed to test the admin API for this case... I will > > create > > > a > > > > > Jira issue and try to fix it soon. > > > > > > > > > > Thanks for your time on testing ZooKeeper and reporting the > problem! > > :) > > > > > > > > > > Mate > > > > > > > > > > On Wed, Nov 27, 2019 at 8:56 PM Mike Smotritsky < > > > > MikeSmotritsky@ongov.net> > > > > > wrote: > > > > > > > > > >> Hi, I've installed 3.5.5 and 3.5.6 3-server cluster. Secured and > > using > > > > >> SSLQuorum. > > > > >> All works well except that I'm getting NullPointerException when > > > > invoking > > > > >> certain commands through Web AdminServer (stats,conf) > > > > >> Others works well. > > > > >> **************************************** > > > > >> java.lang.NullPointerException > > > > >> at > > > > >> > > > > > > > > > > org.apache.zookeeper.server.ZooKeeperServer.getConf(ZooKeeperServer.java:220) > > > > >> at > > > > >> > > > > > > > > > > org.apache.zookeeper.server.admin.Commands$ConfCommand.run(Commands.java:162) > > > > >> at > > > > >> > > > org.apache.zookeeper.server.admin.Commands.runCommand(Commands.java:95) > > > > >> at > > > > >> > > > > > > > > > > org.apache.zookeeper.server.admin.JettyAdminServer$CommandServlet.doGet(JettyAdminServer.java:175) > > > > >> at > > > javax.servlet.http.HttpServlet.service(HttpServlet.java:687) > > > > >> at > > > javax.servlet.http.HttpServlet.service(HttpServlet.java:790) > > > > >> at > > > > >> > > org.eclipse.jetty.servlet.ServletHolder.handle(ServletHolder.java:873) > > > > >> at > > > > >> > > > > > > > > > > org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:542) > > > > >> at > > > > >> > > > > > > > > > > org.eclipse.jetty.server.handler.ScopedHandler.nextHandle(ScopedHandler.java:255) > > > > >> at > > > > >> > > > > > > > > > > org.eclipse.jetty.server.session.SessionHandler.doHandle(SessionHandler.java:1700) > > > > >> at > > > > >> > > > > > > > > > > org.eclipse.jetty.server.handler.ScopedHandler.nextHandle(ScopedHandler.java:255) > > > > >> at > > > > >> > > > > > > > > > > org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:1345) > > > > >> at > > > > >> > > > > > > > > > > org.eclipse.jetty.server.handler.ScopedHandler.nextScope(ScopedHandler.java:203) > > > > >> at > > > > >> > > > > > > org.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java:480) > > > > >> at > > > > >> > > > > > > > > > > org.eclipse.jetty.server.session.SessionHandler.doScope(SessionHandler.java:1667) > > > > >> at > > > > >> > > > > > > > > > > org.eclipse.jetty.server.handler.ScopedHandler.nextScope(ScopedHandler.java:201) > > > > >> at > > > > >> > > > > > > > > > > org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:1247) > > > > >> at > > > > >> > > > > > > > > > > org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:144) > > > > >> at > > > > >> > > > > > > > > > > org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:132) > > > > >> at org.eclipse.jetty.server.Server.handle(Server.java:505) > > > > >> at > > > > >> org.eclipse.jetty.server.HttpChannel.handle(HttpChannel.java:370) > > > > >> at > > > > >> > > > > > > > > > > org.eclipse.jetty.server.HttpConnection.onFillable(HttpConnection.java:267) > > > > >> at org.eclipse.jetty.io > > > > >> > > > .AbstractConnection$ReadCallback.succeeded(AbstractConnection.java:305) > > > > >> at org.eclipse.jetty.io > > > > >> .FillInterest.fillable(FillInterest.java:103) > > > > >> at org.eclipse.jetty.io > > > > >> .ChannelEndPoint$2.run(ChannelEndPoint.java:117) > > > > >> at > > > > >> > > > > > > > > > > org.eclipse.jetty.util.thread.strategy.EatWhatYouKill.runTask(EatWhatYouKill.java:333) > > > > >> at > > > > >> > > > > > > > > > > org.eclipse.jetty.util.thread.strategy.EatWhatYouKill.doProduce(EatWhatYouKill.java:310) > > > > >> at > > > > >> > > > > > > > > > > org.eclipse.jetty.util.thread.strategy.EatWhatYouKill.tryProduce(EatWhatYouKill.java:168) > > > > >> at > > > > >> > > > > > > > > > > org.eclipse.jetty.util.thread.strategy.EatWhatYouKill.run(EatWhatYouKill.java:126) > > > > >> at > > > > >> > > > > > > > > > > org.eclipse.jetty.util.thread.ReservedThreadExecutor$ReservedThread.run(ReservedThreadExecutor.java:366) > > > > >> at > > > > >> > > > > > > > > > > org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPool.java:786) > > > > >> at > > > > >> > > > > > > > > > > org.eclipse.jetty.util.thread.QueuedThreadPool$2.run(QueuedThreadPool.java:743) > > > > >> at java.base/java.lang.Thread.run(Thread.java:834) > > > > >> java.lang.NullPointerException > > > > >> at > > > > >> > > > > > > > > > > org.apache.zookeeper.server.admin.Commands$StatCommand.run(Commands.java:461) > > > > >> at > > > > >> > > > org.apache.zookeeper.server.admin.Commands.runCommand(Commands.java:95) > > > > >> at > > > > >> > > > > > > > > > > org.apache.zookeeper.server.admin.JettyAdminServer$CommandServlet.doGet(JettyAdminServer.java:175) > > > > >> at > > > javax.servlet.http.HttpServlet.service(HttpServlet.java:687) > > > > >> at > > > javax.servlet.http.HttpServlet.service(HttpServlet.java:790) > > > > >> at > > > > >> > > org.eclipse.jetty.servlet.ServletHolder.handle(ServletHolder.java:873) > > > > >> at > > > > >> > > > > > > > > > > org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:542) > > > > >> at > > > > >> > > > > > > > > > > org.eclipse.jetty.server.handler.ScopedHandler.nextHandle(ScopedHandler.java:255) > > > > >> at > > > > >> > > > > > > > > > > org.eclipse.jetty.server.session.SessionHandler.doHandle(SessionHandler.java:1700) > > > > >> at > > > > >> > > > > > > > > > > org.eclipse.jetty.server.handler.ScopedHandler.nextHandle(ScopedHandler.java:255) > > > > >> at > > > > >> > > > > > > > > > > org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:1345) > > > > >> at > > > > >> > > > > > > > > > > org.eclipse.jetty.server.handler.ScopedHandler.nextScope(ScopedHandler.java:203) > > > > >> at > > > > >> > > > > > > org.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java:480) > > > > >> at > > > > >> > > > > > > > > > > org.eclipse.jetty.server.session.SessionHandler.doScope(SessionHandler.java:1667) > > > > >> at > > > > >> > > > > > > > > > > org.eclipse.jetty.server.handler.ScopedHandler.nextScope(ScopedHandler.java:201) > > > > >> at > > > > >> > > > > > > > > > > org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:1247) > > > > >> at > > > > >> > > > > > > > > > > org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:144) > > > > >> at > > > > >> > > > > > > > > > > org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:132) > > > > >> at org.eclipse.jetty.server.Server.handle(Server.java:505) > > > > >> at > > > > >> org.eclipse.jetty.server.HttpChannel.handle(HttpChannel.java:370) > > > > >> at > > > > >> > > > > > > > > > > org.eclipse.jetty.server.HttpConnection.onFillable(HttpConnection.java:267) > > > > >> at org.eclipse.jetty.io > > > > >> > > > .AbstractConnection$ReadCallback.succeeded(AbstractConnection.java:305) > > > > >> at org.eclipse.jetty.io > > > > >> .FillInterest.fillable(FillInterest.java:103) > > > > >> at org.eclipse.jetty.io > > > > >> .ChannelEndPoint$2.run(ChannelEndPoint.java:117) > > > > >> at > > > > >> > > > > > > > > > > org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPool.java:786) > > > > >> at > > > > >> > > > > > > > > > > org.eclipse.jetty.util.thread.QueuedThreadPool$2.run(QueuedThreadPool.java:743) > > > > >> at java.base/java.lang.Thread.run(Thread.java:834) > > > > >> > > > > >> > > > > >> Thanks and Regards, > > > > >> > > > > >> MIke > > > > >> > > > > > > > > > > > > > > > --000000000000a68ef50598f64b20--