You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@zookeeper.apache.org by "Arshad Mohammad (JIRA)" <ji...@apache.org> on 2016/01/18 15:59:40 UTC

[jira] [Commented] (ZOOKEEPER-2355) ZooKeeper ephemeral node is never deleted if follower fail while reading the proposal packet

    [ https://issues.apache.org/jira/browse/ZOOKEEPER-2355?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15105390#comment-15105390 ] 

Arshad Mohammad commented on ZOOKEEPER-2355:
--------------------------------------------

At step 6, while creating the ephemeral node /e1  following error is observed at faulted node B but after adjusting the parent c version it continues and user does not get any error
{code}
2016-01-18 20:17:47,928 [myid:3] - DEBUG [CommitProcWorkThread-1:DataTree@961] - Failed: 72279218071011328,5,8589934597,1453128465886,1
:'/e1,,v{s{31,s{'world,'anyone}}},T,2

org.apache.zookeeper.KeeperException$NodeExistsException: KeeperErrorCode = NodeExists
	at org.apache.zookeeper.server.DataTree.createNode(DataTree.java:514)
	at org.apache.zookeeper.server.DataTree.processTxn(DataTree.java:827)
	at org.apache.zookeeper.server.ZKDatabase.processTxn(ZKDatabase.java:401)
	at org.apache.zookeeper.server.ZooKeeperServer.processTxn(ZooKeeperServer.java:1216)
	at org.apache.zookeeper.server.ZooKeeperServer.processTxn(ZooKeeperServer.java:1207)
	at org.apache.zookeeper.server.FinalRequestProcessor.processRequest(FinalRequestProcessor.java:109)
	at org.apache.zookeeper.server.quorum.CommitProcessor$CommitWorkRequest.doWork(CommitProcessor.java:296)
	at org.apache.zookeeper.server.WorkerService$ScheduledWorkRequest.run(WorkerService.java:162)
	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
	at java.lang.Thread.run(Thread.java:745)
2016-01-18 20:17:50,378 [myid:3] - DEBUG [CommitProcWorkThread-1:DataTree@1003] - Adjusting parent cversion for Txn: 1 path:/e1 err: -110
{code}

> ZooKeeper ephemeral node is never deleted if follower fail while reading the proposal packet
> --------------------------------------------------------------------------------------------
>
>                 Key: ZOOKEEPER-2355
>                 URL: https://issues.apache.org/jira/browse/ZOOKEEPER-2355
>             Project: ZooKeeper
>          Issue Type: Bug
>          Components: quorum, server
>            Reporter: Arshad Mohammad
>            Assignee: Arshad Mohammad
>            Priority: Critical
>
> ZooKeeper ephemeral node is never deleted if follower fail while reading the proposal packet
> The scenario is as follows:
> # Configure three node ZooKeeper cluster, lets say nodes are A, B and C, start all, assume A is leader, B and C are follower
> # Connect to any of the server and create ephemeral node /e1
> # Close the session, ephemeral node /e1 will go for deletion
> # While receiving delete proposal make Follower B to fail with {{SocketTimeoutException}}. This we need to do to reproduce the scenario otherwise in production environment it happens because of network fault.
> # Remove the fault, just check that faulted Follower is now connected with quorum
> # Connect to any of the server, create the same ephemeral node /e1, created is success.
> # Close the session,  ephemeral node /e1 will go for deletion
> # {color:red}/e1 is not deleted from the faulted Follower B, It should have been deleted as it was again created with another session{color}
> # {color:green}/e1 is deleted from Leader A and other Follower C{color}



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)