[ 
https://issues.apache.org/jira/browse/ZOOKEEPER-2005?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Rakesh R updated ZOOKEEPER-2005:
--------------------------------

    Attachment: ZOOKEEPER-2005-Test.patch

Can you execute this in your environment. I tried to simulate the operations 
which is performing during startup. 

> Failure to setCurrentEpoch on lead
> ----------------------------------
>
>                 Key: ZOOKEEPER-2005
>                 URL: https://issues.apache.org/jira/browse/ZOOKEEPER-2005
>             Project: ZooKeeper
>          Issue Type: Bug
>          Components: leaderElection
>    Affects Versions: 3.4.6
>            Reporter: Ioannis Canellos
>         Attachments: ZOOKEEPER-2005-Test.patch
>
>
> We are embedding the zookeeper server in our container and every now and then 
> I see the exception below when running our integration tests suite.
> This is something that have never bother us before when using 3.4.5 but we do 
> see in 3.4.6. 
> When this occurs, the ensemble is not formed.
> java.io.IOException: Could not rename temporary file 
> /data/zookeeper/0001/version-2/currentEpoch.tmp to 
> /data/zookeeper/0001/version-2/currentEpoch
>         at 
> org.apache.zookeeper.common.AtomicFileOutputStream.close(AtomicFileOutputStream.java:82)
>         at 
> org.apache.zookeeper.server.quorum.QuorumPeer.writeLongToFile(QuorumPeer.java:1202)
>         at 
> org.apache.zookeeper.server.quorum.QuorumPeer.setCurrentEpoch(QuorumPeer.java:1223)
>         at org.apache.zookeeper.server.quorum.Leader.lead(Leader.java:395)



--
This message was sent by Atlassian JIRA
(v6.2#6252)

Reply via email to