Commit Graph

543 Commits

Author SHA1 Message Date
Chris Lu
1ac71a111f Issue 28: [HELP NEEDED] weed upload does not send correct mime type to
weedfs

Fix is provided by claudiu.raveica
2013-07-11 19:14:55 -07:00
Chris Lu
3afc2d2ce6 remove unused code 2013-07-10 00:27:01 -07:00
Chris Lu
4c200acd7d 1. ensure replicated file has the same timestamp
2. upload can specify modified time by &ts=...
3. correctly return code 304
2013-07-10 00:25:14 -07:00
Chris Lu
53b6831f73 bump up version number to 0.32 2013-07-09 10:50:48 -07:00
Chris Lu
cbd9d14cc4 Issue 27: feature request - Last-Modified header 2013-07-08 23:38:38 -07:00
Chris Lu
53ae13a012 change default number of volumes to 7, so that the first volume growth
would not fail.
2013-07-08 01:58:28 -07:00
Chris Lu
e30e325770 Issue 26: Could not download uploaded files
Fix is provided by hieu.hcmus, He convinced me of the fix. Thanks!
2013-07-05 16:05:35 -07:00
Chris Lu
d1fcf1fd67 add error when size limit is reached 2013-07-03 22:14:16 -07:00
Chris Lu
50269b74ce add dataCenter option when assign file keys
add dataCenter option when starting volume servers
some work related to freeze a volume. Not tested yet.
2013-06-19 18:10:38 -07:00
Chris Lu
715d327df0 Tamás Gulácsi contributed cdb map for read only extremely low memory
implementation.
2013-05-05 11:19:41 -07:00
Chris Lu
fb635146a1 refactoring needle mapper interface to separate index file storage logic
out
2013-04-18 00:23:14 -07:00
Chris Lu
915b16f97a refactoring, same logic, but the store replication logic is moved to a
stand-alone file, for later easier improvements
2013-04-16 00:10:21 -07:00
Chris Lu
e4da140d0a rename volume_location.go to volume_location_list.go 2013-04-15 15:19:14 -07:00
Chris Lu
3222d40871 fix compilation error 2013-04-14 19:37:29 -07:00
Chris Lu
95dc977608 accurate error messages during writing 2013-04-14 19:34:37 -07:00
Chris Lu
a4369b35a7 merge changes from about dealing with read only volumes.
97482255d5.diff
2013-04-14 19:30:26 -07:00
Chris Lu
4d8ce2fe26 adding HEAD support 2013-03-20 22:57:41 -07:00
Chris Lu
437532d559 0.31 is next release 2013-03-20 22:08:54 -07:00
Chris Lu
9da3ea35ac avoid empty data nodes 2013-03-20 05:12:55 -07:00
Chris Lu
0c75e0438e bump to 0.30 since it fixed an important bug 2013-03-20 01:39:20 -07:00
Chris Lu
1aea3512a4 return nil instead of memory access error 2013-03-20 01:23:15 -07:00
Chris Lu
6658d5de45 fix sequence assignment error 2013-03-19 13:37:36 -07:00
Chris Lu
2d0a555270 bump up the version 2013-03-19 11:28:11 -07:00
Chris Lu
a1d5a6298c avoid missing configuration file error 2013-03-19 10:36:29 -07:00
Chris Lu
2d4a7ac9f9 avoid error when missing configuration file 2013-03-19 10:35:13 -07:00
Chris Lu
018df9ceb0 avoid file not exist error 2013-03-19 10:33:33 -07:00
Chris Lu
a3eddde525 fix documentation error 2013-03-18 21:29:25 -07:00
Chris Lu
9bbbbb7c2c releasing version 0.28 2013-03-08 16:50:40 -08:00
Chris Lu
db8e27be6e add lots of error checking by GThomas 2013-02-26 22:54:22 -08:00
Chris Lu
bd278337db checking file name empty 2013-02-26 14:56:18 -08:00
Chris Lu
a4cef2fbd4 only cares about error other than EOF 2013-02-11 23:54:21 -08:00
Chris Lu
91492b4947 avoid EOF error on windows. This is a "try to load" function anyway. 2013-02-11 23:38:48 -08:00
Chris Lu
b395a5289b do not truncate file if any error happens. Truncating will lose all
files after this file entry.
2013-02-11 22:54:46 -08:00
Chris Lu
2ca983b6d8 print out error message 2013-02-11 22:37:13 -08:00
Chris Lu
aecea22666 Issue 15: Stress test corrupts volume 2013-02-10 14:00:06 -08:00
Chris Lu
38f4425a65 checking error 2013-02-10 13:41:25 -08:00
Chris Lu
79d11ac951 go vet 2013-02-10 09:44:44 -08:00
Chris Lu
d4e5a22e53 rename from cmd to weed for easier "go build" 2013-02-10 04:05:28 -08:00
Chris Lu
37a1a70cc3 remove unused files 2013-02-10 03:53:52 -08:00
Chris Lu
7743ddd7db Merge remote-tracking branch 'origin/master' 2013-02-10 03:51:04 -08:00
Chris Lu
5071f528f6 testing compilation with remove package 2013-02-10 03:49:51 -08:00
Chris Lu
7e0951ad9c testing compilation with remove package 2013-02-10 03:40:37 -08:00
Chris Lu
55f2627fcf testing new directory structure 2013-02-10 03:31:40 -08:00
Chris Lu
ab6fb13ad7 avoid the "src" folder 2013-02-10 03:25:35 -08:00
Chris Lu
1b6f53cdac remove binary accidentally checked in 2013-02-10 03:12:58 -08:00
Chris Lu
cb4e8ec16b re-organize code directory structure 2013-02-10 03:09:26 -08:00
Chris Lu
d3b267bac2 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
2013-02-06 14:30:44 -08:00
Chris Lu
0b7a235c17 ensure file name does not contain any "/" 2013-01-22 15:07:51 -08:00
Chris Lu
f2af477324 added file name format when exporting. patch from Tamás Gulácsi 2013-01-22 15:07:19 -08:00
Chris Lu
84e1a59df7 add option to output to stdout - patch from Tamás Gulácsi
report file size correctly
2013-01-21 17:50:10 -08:00