HarryWei / cloudxy

Automatically exported from code.google.com/p/cloudxy
6 stars 3 forks source link

restore_last_segno_file func is done when we use hlfs as a local style #3

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
NOTE: you should do this in my branch
1. my test case is test.c located 
http://cloudxy.googlecode.com/svn/branches/harry/hlfs/src/snapshot/unittest/test
.c  
2. cd branches/harry/hlfs/src/snapshot/unittest/build
3. cmake .. && make
4, ./test -u local:///tmp/testenv/testfs -r 4096 -a 40960

What is the expected output? What do you see instead?
[expected output]
TEST: uri is local:///tmp/testenv/testfs, request size is 4096, total size is 
40960
TEST  hlfs open over 
test hlfs write
offset:4096
offset:8192
offset:12288
offset:16384
offset:20480
offset:24576
offset:28672
offset:32768
offset:36864
offset:40960
TEST  hlfs write over 
test hlfs read
offset:4096
offset:8192
offset:12288
offset:16384
offset:20480
offset:24576
offset:28672
offset:32768
offset:36864
offset:40960

[see instead]
TEST: uri is local:///tmp/testenv/testfs, request size is 4096, total size is 
40960
TEST  hlfs open over 
test hlfs write
offset:4096
offset:8192
offset:12288
offset:16384
offset:20480
offset:24576
offset:28672
offset:32768
offset:36864
offset:40960
TEST  hlfs write over 
test hlfs read
offset:4096
offset:8192
offset:12288
offset:16384
offset:20480
offset:24576
offset:28672
offset:32768
offset:36864
offset:40960
cp: No FileSystem for scheme: local
rm: No FileSystem for scheme: local
mv: No FileSystem for scheme: local

That is to say when we execute hlfs as local style, we also do the restore 
action.
i think we should fix it, which only do restore when hdfs style.

Original issue reported on code.google.com by harryxi...@gmail.com on 19 Dec 2011 at 2:16

GoogleCodeExporter commented 9 years ago
已经修复了,详见
http://code.google.com/p/cloudxy/source/detail?r=310#

Original comment by harryxi...@gmail.com on 2 Jan 2012 at 12:46