[tahoe-dev] [tahoe-lafs] #970: Tahoe Put can cause directory corruption
tahoe-lafs
trac at allmydata.org
Mon Feb 22 21:28:21 PST 2010
#970: Tahoe Put can cause directory corruption
----------------------+-----------------------------------------------------
Reporter: stott | Owner: nobody
Type: defect | Status: new
Priority: critical | Milestone: undecided
Component: unknown | Version: 1.5.0
Keywords: | Launchpad_bug:
----------------------+-----------------------------------------------------
Multiple simultaneous Tahoe put(s) via web API cause directory level
corruption resulting in no recoverable data.
To recreate
Step 1.) Create Directory ; Get directory writecap.
Step 2.) Using 61 .JPG files avg 1.7MB use test.sh script to put files to
Tahoe-Lafs.
-------------------
bash-3.2$ du -sh .
102m
-------------------
bash-3.2$ ls *.JPG |wc -l
61
-------------------
bash-3.2$ cat test.sh
#!/bin/sh
# From Directory listing itself == Directory Write CAP
FW="URI:DIR2:tuz27wvy27ua4mt5lyotllbyke:phzv6ilb5gssi3zy33nki62zcudqjzyv7v7w4qaavwn5kuh2hawa"
X=3456
for I in `ls *.JPG`
do
curl -T $I http://10.20.0.151:$X/uri/$FW/$I &
#echo "curl -T $I http://10.20.0.151:$X/uri/$FW/$I & "
X=`expr $X + 1`
if [ $X -le 3500 ] ; then
echo "Submitting $I"
else X=3456;
fi
done
-------------------------------------------
Error returned from curl
UnrecoverableFileError: the directory (or mutable file) could not be
retrieved, because there were insufficient good shares. This might
indicate that no servers were connected, insufficient servers were
connected, the URI was corrupt, or that shares have been lost due to
server departure, hard drive failure, or disk corruption. You should
perform a filecheck on this object to learn more.
------------------------
Error Generated when trying to retrieve known good URI from child
http://codepad.org/mTFYmfxf
-------------------------
--
Ticket URL: <http://allmydata.org/trac/tahoe/ticket/970>
tahoe-lafs <http://allmydata.org>
secure decentralized file storage grid
More information about the tahoe-dev
mailing list