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

Ioannis Canellos commented on ZOOKEEPER-2005:
---------------------------------------------

No I am not using Windows. I am using Linux, so yes the only logical 
explanation is that the file is kept open by someone (since renaming is 
expected to work).

I can't think of any processes messing up with this file. 



> 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
>
> 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