aboutsummaryrefslogtreecommitdiff
path: root/src/weed/command.go
diff options
context:
space:
mode:
authorChris Lu <chris.lu@gmail.com>2013-02-06 14:30:44 -0800
committerChris Lu <chris.lu@gmail.com>2013-02-06 14:30:44 -0800
commitd3b267bac27018b7f70dfec7c258d0556fff4c14 (patch)
tree1871244b96a16046fbbf577b0e14e4b11f240688 /src/weed/command.go
parent0b7a235c1746ae23186d7ec9c707fc019ec25c25 (diff)
downloadseaweedfs-d3b267bac27018b7f70dfec7c258d0556fff4c14.tar.xz
seaweedfs-d3b267bac27018b7f70dfec7c258d0556fff4c14.zip
Issue 15: Stress test corrupts volume
Checked in for GThomas(tgulacsi78) I've also met with partial writes (pipe closed on localhost), and also met with real corruption: after some partial write, the data size in needle header was read as some huuuuge number, which resulted in memory panic. Please consider the attached patch for ensuring full writes (seeks back to the beginning on needle append error). Hope this helps. Tested with a small tmpfs, lot of "no space left on device" :) (sudo umount -lf /tmp/weed; mkdir -p /tmp/weed && sudo mount -o size=128M,mode=4777 -t tmpfs tmpfs /tmp/weed && bin/weed master -mdir=/tmp/weed -debug=true & bin/weed volume -dir=/tmp/weed -debug=true) GThomas
Diffstat (limited to 'src/weed/command.go')
0 files changed, 0 insertions, 0 deletions