Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id 5A10A200CAD for ; Wed, 28 Jun 2017 09:09:06 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id 58A69160BF7; Wed, 28 Jun 2017 07:09:06 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id 4BDB4160BE8 for ; Wed, 28 Jun 2017 09:09:05 +0200 (CEST) Received: (qmail 69959 invoked by uid 500); 28 Jun 2017 07:09:04 -0000 Mailing-List: contact dev-help@zookeeper.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@zookeeper.apache.org Delivered-To: mailing list dev@zookeeper.apache.org Received: (qmail 69947 invoked by uid 99); 28 Jun 2017 07:09:04 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd3-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 28 Jun 2017 07:09:04 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd3-us-west.apache.org (ASF Mail Server at spamd3-us-west.apache.org) with ESMTP id C0F1C18193B for ; Wed, 28 Jun 2017 07:09:03 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd3-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: -99.202 X-Spam-Level: X-Spam-Status: No, score=-99.202 tagged_above=-999 required=6.31 tests=[KAM_ASCII_DIVIDERS=0.8, RP_MATCHES_RCVD=-0.001, SPF_PASS=-0.001, USER_IN_WHITELIST=-100] autolearn=disabled Received: from mx1-lw-us.apache.org ([10.40.0.8]) by localhost (spamd3-us-west.apache.org [10.40.0.10]) (amavisd-new, port 10024) with ESMTP id bHRRMUcw8oXB for ; Wed, 28 Jun 2017 07:09:01 +0000 (UTC) Received: from mailrelay1-us-west.apache.org (mailrelay1-us-west.apache.org [209.188.14.139]) by mx1-lw-us.apache.org (ASF Mail Server at mx1-lw-us.apache.org) with ESMTP id 069B35F6C8 for ; Wed, 28 Jun 2017 07:09:01 +0000 (UTC) Received: from jira-lw-us.apache.org (unknown [207.244.88.139]) by mailrelay1-us-west.apache.org (ASF Mail Server at mailrelay1-us-west.apache.org) with ESMTP id 8783DE02AA for ; Wed, 28 Jun 2017 07:09:00 +0000 (UTC) Received: from jira-lw-us.apache.org (localhost [127.0.0.1]) by jira-lw-us.apache.org (ASF Mail Server at jira-lw-us.apache.org) with ESMTP id 0ABD92415E for ; Wed, 28 Jun 2017 07:09:00 +0000 (UTC) Date: Wed, 28 Jun 2017 07:09:00 +0000 (UTC) From: "Ashish Singhi (JIRA)" To: dev@zookeeper.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (ZOOKEEPER-2530) When zookeeper started in SSL mode, set a "get" watcher on a znode from zkCli client, restart the zkCli, the "Data" watcher still present. Trying removing that watcher fails saying no watcher available MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 archived-at: Wed, 28 Jun 2017 07:09:06 -0000 [ https://issues.apache.org/jira/browse/ZOOKEEPER-2530?page=3Dcom.atlas= sian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=3D= 16066028#comment-16066028 ]=20 Ashish Singhi commented on ZOOKEEPER-2530: ------------------------------------------ This is duplicate of ZOOKEEPER-2358. The patch in ZOOKEEPER-2358 will solve= this issue. > When zookeeper started in SSL mode, set a "get" watcher on a znode from z= kCli client, restart the zkCli, the "Data" watcher still present. Trying re= moving that watcher fails saying no watcher available > -------------------------------------------------------------------------= ---------------------------------------------------------------------------= ----------------------------------------------------- > > Key: ZOOKEEPER-2530 > URL: https://issues.apache.org/jira/browse/ZOOKEEPER-2530 > Project: ZooKeeper > Issue Type: Bug > Components: server > Affects Versions: 3.5.1 > Reporter: Rakesh Kumar Singh > > When zookeeper started in SSL mode, set a "get" watcher on a znode from z= kCli client, restart the zkCli, the "Data" watcher still present. Trying re= moving that watcher fails saying no watcher available > Steps to reproduce:- > Start Zookeeper server in ssl mode by configuring all required ssl config= uration > Start zkCli and set a "Data" watcher "get -w " > Restart the zkCli client > Check the watcher. Still the Data watcher is available > Try to remove the watcher using removewachers, it fails saying no watcher= available. > BLR1000007042:~ # echo wchs | netcat localhost 3181 > 1 connections watching 1 paths > Total watches:1 > BLR1000007042:~ # echo wchs | netcat localhost 3181 > 1 connections watching 1 paths > Total watches:1 > Client log as below:- > [zk: localhost:2181(CONNECTED) 0] get -w /test > hello1 > [zk: localhost:2181(CONNECTED) 1] quit > 2016-08-25 14:22:00,706 [myid:] - INFO [main:ClientCnxnSocketNetty@201] -= channel is told closing > 2016-08-25 14:22:00,706 [myid:] - INFO [main:ZooKeeper@1110] - Session: 0= x1019f8940e20000 closed > 2016-08-25 14:22:00,706 [myid:] - INFO [main-EventThread:ClientCnxn$Event= Thread@542] - EventThread shut down for session: 0x1019f8940e20000 > 2016-08-25 14:22:00,707 [myid:] - INFO [New I/O worker #1:ClientCnxnSocke= tNetty$ZKClientHandler@377] - channel is disconnected: [id: 0x9dab735e, /12= 7.0.0.1:57415 :> localhost/127.0.0.1:2181] > 2016-08-25 14:22:00,707 [myid:] - INFO [New I/O worker #1:ClientCnxnSocke= tNetty@201] - channel is told closing > BLR1000007042:/home/Rakesh/Zookeeper/18_Aug/zookeeper-3.5.1-alpha/bin # .= /zkCli.sh > /usr/bin/java > Connecting to localhost:2181 > 2016-08-25 14:22:15,079 [myid:] - INFO [main:Environment@109] - Client en= vironment:zookeeper.version=3D3.5.1-alpha--1, built on 08/18/2016 08:20 GMT > 2016-08-25 14:22:15,083 [myid:] - INFO [main:Environment@109] - Client en= vironment:host.name=3DBLR1000007042 > 2016-08-25 14:22:15,084 [myid:] - INFO [main:Environment@109] - Client en= vironment:java.version=3D1.7.0_79 > 2016-08-25 14:22:15,086 [myid:] - INFO [main:Environment@109] - Client en= vironment:java.vendor=3DOracle Corporation > 2016-08-25 14:22:15,086 [myid:] - INFO [main:Environment@109] - Client en= vironment:java.home=3D/usr/java/jdk1.7.0_79/jre > 2016-08-25 14:22:15,086 [myid:] - INFO [main:Environment@109] - Client en= vironment:java.class.path=3D/home/Rakesh/Zookeeper/18_Aug/zookeeper-3.5.1-a= lpha/bin/../build/classes:/home/Rakesh/Zookeeper/18_Aug/zookeeper-3.5.1-alp= ha/bin/../build/lib/*.jar:/home/Rakesh/Zookeeper/18_Aug/zookeeper-3.5.1-alp= ha/bin/../lib/slf4j-log4j12-1.7.5.jar:/home/Rakesh/Zookeeper/18_Aug/zookeep= er-3.5.1-alpha/bin/../lib/slf4j-api-1.7.5.jar:/home/Rakesh/Zookeeper/18_Aug= /zookeeper-3.5.1-alpha/bin/../lib/servlet-api-2.5-20081211.jar:/home/Rakesh= /Zookeeper/18_Aug/zookeeper-3.5.1-alpha/bin/../lib/netty-3.7.0.Final.jar:/h= ome/Rakesh/Zookeeper/18_Aug/zookeeper-3.5.1-alpha/bin/../lib/log4j-1.2.16.j= ar:/home/Rakesh/Zookeeper/18_Aug/zookeeper-3.5.1-alpha/bin/../lib/jline-2.1= 1.jar:/home/Rakesh/Zookeeper/18_Aug/zookeeper-3.5.1-alpha/bin/../lib/jetty-= util-6.1.26.jar:/home/Rakesh/Zookeeper/18_Aug/zookeeper-3.5.1-alpha/bin/../= lib/jetty-6.1.26.jar:/home/Rakesh/Zookeeper/18_Aug/zookeeper-3.5.1-alpha/bi= n/../lib/javacc.jar:/home/Rakesh/Zookeeper/18_Aug/zookeeper-3.5.1-alpha/bin= /../lib/jackson-mapper-asl-1.9.11.jar:/home/Rakesh/Zookeeper/18_Aug/zookeep= er-3.5.1-alpha/bin/../lib/jackson-core-asl-1.9.11.jar:/home/Rakesh/Zookeepe= r/18_Aug/zookeeper-3.5.1-alpha/bin/../lib/commons-cli-1.2.jar:/home/Rakesh/= Zookeeper/18_Aug/zookeeper-3.5.1-alpha/bin/../lib/ant-eclipse-1.0-jvm1.2.ja= r:/home/Rakesh/Zookeeper/18_Aug/zookeeper-3.5.1-alpha/bin/../zookeeper-3.5.= 1-alpha.jar:/home/Rakesh/Zookeeper/18_Aug/zookeeper-3.5.1-alpha/bin/../src/= java/lib/ant-eclipse-1.0-jvm1.2.jar:/home/Rakesh/Zookeeper/18_Aug/zookeeper= -3.5.1-alpha/bin/../conf: > 2016-08-25 14:22:15,087 [myid:] - INFO [main:Environment@109] - Client en= vironment:java.library.path=3D/usr/java/packages/lib/amd64:/usr/lib64:/lib6= 4:/lib:/usr/lib > 2016-08-25 14:22:15,087 [myid:] - INFO [main:Environment@109] - Client en= vironment:java.io.tmpdir=3D/tmp > 2016-08-25 14:22:15,087 [myid:] - INFO [main:Environment@109] - Client en= vironment:java.compiler=3D > 2016-08-25 14:22:15,087 [myid:] - INFO [main:Environment@109] - Client en= vironment:os.name=3DLinux > 2016-08-25 14:22:15,087 [myid:] - INFO [main:Environment@109] - Client en= vironment:os.arch=3Damd64 > 2016-08-25 14:22:15,087 [myid:] - INFO [main:Environment@109] - Client en= vironment:os.version=3D3.0.76-0.11-default > 2016-08-25 14:22:15,087 [myid:] - INFO [main:Environment@109] - Client en= vironment:user.name=3Droot > 2016-08-25 14:22:15,087 [myid:] - INFO [main:Environment@109] - Client en= vironment:user.home=3D/root > 2016-08-25 14:22:15,088 [myid:] - INFO [main:Environment@109] - Client en= vironment:user.dir=3D/home/Rakesh/Zookeeper/18_Aug/zookeeper-3.5.1-alpha/bi= n > 2016-08-25 14:22:15,088 [myid:] - INFO [main:Environment@109] - Client en= vironment:os.memory.free=3D52MB > 2016-08-25 14:22:15,090 [myid:] - INFO [main:Environment@109] - Client en= vironment:os.memory.max=3D227MB > 2016-08-25 14:22:15,090 [myid:] - INFO [main:Environment@109] - Client en= vironment:os.memory.total=3D57MB > 2016-08-25 14:22:15,095 [myid:] - INFO [main:ZooKeeper@716] - Initiating = client connection, connectString=3Dlocalhost:2181 sessionTimeout=3D30000 wa= tcher=3Dorg.apache.zookeeper.ZooKeeperMain$MyWatcher@272f15b0 > Welcome to ZooKeeper! > 2016-08-25 14:22:15,182 [myid:] - INFO [main-SendThread(localhost:2181):C= lientCnxn$SendThread@1138] - Opening socket connection to server localhost/= 127.0.0.1:2181. Will not attempt to authenticate using SASL (unknown error) > JLine support is enabled > [INFO] Unable to bind key for unsupported operation: backward-delete-word > [INFO] Unable to bind key for unsupported operation: backward-delete-word > [INFO] Unable to bind key for unsupported operation: down-history > [INFO] Unable to bind key for unsupported operation: up-history > [INFO] Unable to bind key for unsupported operation: up-history > [INFO] Unable to bind key for unsupported operation: down-history > [INFO] Unable to bind key for unsupported operation: up-history > [INFO] Unable to bind key for unsupported operation: down-history > [INFO] Unable to bind key for unsupported operation: up-history > [INFO] Unable to bind key for unsupported operation: down-history > [INFO] Unable to bind key for unsupported operation: up-history > [INFO] Unable to bind key for unsupported operation: down-history > [zk: localhost:2181(CONNECTING) 0] 2016-08-25 14:22:15,502 [myid:] - INFO= [main-SendThread(localhost:2181):ClientCnxnSocketNetty$ZKClientPipelineFac= tory@363] - SSL handler added for channel: null > 2016-08-25 14:22:15,537 [myid:] - INFO [New I/O worker #1:ClientCnxn$Send= Thread@980] - Socket connection established, initiating session, client: /1= 27.0.0.1:57420, server: localhost/127.0.0.1:2181 > 2016-08-25 14:22:15,540 [myid:] - INFO [New I/O worker #1:ClientCnxnSocke= tNetty$1@146] - channel is connected: [id: 0xfc4fe483, /127.0.0.1:57420 =3D= > localhost/127.0.0.1:2181] > 2016-08-25 14:22:15,673 [myid:] - INFO [New I/O worker #1:ClientCnxn$Send= Thread@1400] - Session establishment complete on server localhost/127.0.0.1= :2181, sessionid =3D 0x1019f8940e20001, negotiated timeout =3D 30000 > WATCHER:: > WatchedEvent state:SyncConnected type:None path:null > [zk: localhost:2181(CONNECTED) 0] removewatches /test -a > 2016-08-25 14:24:14,420 [myid:] - ERROR [New I/O worker #1:ClientCnxn@725= ] - Failed to find watcher! > org.apache.zookeeper.KeeperException$NoWatcherException: KeeperErrorCode = =3D No such watcher for /test > at org.apache.zookeeper.ZooKeeper$ZKWatchManager.containsWatcher(ZooKeepe= r.java:377) > at org.apache.zookeeper.ZooKeeper$ZKWatchManager.removeWatcher(ZooKeeper.= java:252) > at org.apache.zookeeper.WatchDeregistration.unregister(WatchDeregistratio= n.java:58) > at org.apache.zookeeper.ClientCnxn.finishPacket(ClientCnxn.java:712) > at org.apache.zookeeper.ClientCnxn.access$1500(ClientCnxn.java:97) > at org.apache.zookeeper.ClientCnxn$SendThread.readResponse(ClientCnxn.jav= a:948) > at org.apache.zookeeper.ClientCnxnSocketNetty$ZKClientHandler.messageRece= ived(ClientCnxnSocketNetty.java:419) > at org.jboss.netty.channel.SimpleChannelUpstreamHandler.handleUpstream(Si= mpleChannelUpstreamHandler.java:70) > at org.jboss.netty.channel.DefaultChannelPipeline.sendUpstream(DefaultCha= nnelPipeline.java:564) > at org.jboss.netty.channel.DefaultChannelPipeline$DefaultChannelHandlerCo= ntext.sendUpstream(DefaultChannelPipeline.java:791) > at org.jboss.netty.channel.Channels.fireMessageReceived(Channels.java:296= ) > at org.jboss.netty.handler.codec.frame.FrameDecoder.unfoldAndFireMessageR= eceived(FrameDecoder.java:462) > at org.jboss.netty.handler.codec.frame.FrameDecoder.callDecode(FrameDecod= er.java:443) > at org.jboss.netty.handler.codec.frame.FrameDecoder.messageReceived(Frame= Decoder.java:303) > at org.jboss.netty.channel.SimpleChannelUpstreamHandler.handleUpstream(Si= mpleChannelUpstreamHandler.java:70) > at org.jboss.netty.channel.DefaultChannelPipeline.sendUpstream(DefaultCha= nnelPipeline.java:564) > at org.jboss.netty.channel.DefaultChannelPipeline.sendUpstream(DefaultCha= nnelPipeline.java:559) > at org.jboss.netty.channel.Channels.fireMessageReceived(Channels.java:268= ) > at org.jboss.netty.channel.Channels.fireMessageReceived(Channels.java:255= ) > at org.jboss.netty.channel.socket.nio.NioWorker.read(NioWorker.java:88) > at org.jboss.netty.channel.socket.nio.AbstractNioWorker.process(AbstractN= ioWorker.java:109) > at org.jboss.netty.channel.socket.nio.AbstractNioSelector.run(AbstractNio= Selector.java:312) > at org.jboss.netty.channel.socket.nio.AbstractNioWorker.run(AbstractNioWo= rker.java:90) > at org.jboss.netty.channel.socket.nio.NioWorker.run(NioWorker.java:178) > at org.jboss.netty.util.ThreadRenamingRunnable.run(ThreadRenamingRunnable= .java:108) > at org.jboss.netty.util.internal.DeadLockProofWorker$1.run(DeadLockProofW= orker.java:42) > at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.j= ava:1145) > at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.= java:615) > at java.lang.Thread.run(Thread.java:745) > KeeperErrorCode =3D No such watcher for /test > [zk: localhost:2181(CONNECTED) 1] -- This message was sent by Atlassian JIRA (v6.4.14#64029)