zookeeper-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Bharat Singh <bharatsingh.mnni...@gmail.com>
Subject Zookeeper truncates file to 0bytes
Date Fri, 17 Jul 2015 20:41:28 GMT
Hello,

I am facing a rename issue with Zkfuse.
I am trying to test file atomic updates. After some iterations the file
size becomes 0.
This is easily reproducible, just running the below script for ~5mins.

Setup:
zookeeper-3.4.6 with Zkfuse mounted, size of testFile = 1k

while [ 1 ]
do
        cp /root/testFile /mnt/zk/testFile.tmp
        mv /mnt/zk/testFile.tmp /mnt/zk/testFile
        ls -larth /mnt/zk/
        sleep 1
done


Zkfuse debug logs doesn't show any suspicious activity. Looks like
zookeeper/zkfuse RENAME is not atomic.
Any suggestions to debug this, have any one observed a similar issue ?


Thanks,
Bharat

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message