[Bug 2187] rsync large file getting verification failed using -z

samba-bugs at samba.org samba-bugs at samba.org
Thu Dec 30 10:40:16 GMT 2004


https://bugzilla.samba.org/show_bug.cgi?id=2187





------- Additional Comments From qiucheng at csc.com.cn  2004-12-30 03:40 -------
I did another test.

I got a file which is about 180M. See the following test log:

$ rsync -az -vvv -B 65535 backup at jf-deptest::backup/cscnc1.dmp ./
opening tcp connection to jf-deptest port 873
Password:
receiving file list ...
recv_file_name(cscnc1.dmp)
received 1 names
done
recv_file_list done
get_local_name count=1 ./
generator starting pid=2720 count=1
delta transmission enabled
recv_generator(cscnc1.dmp,0)
generating and sending sums for 0
count=2846 rem=47953 blength=65535 s2length=3 flength=186495028
recv_files(1) starting
generate_files phase=1
recv_files(cscnc1.dmp)
cscnc1.dmp
recv mapped cscnc1.dmp of size 186495028
got file_sum
set modtime of .cscnc1.dmp.002512 to (1104401967) Thu Dec 30 18:19:27 2004
renaming .cscnc1.dmp.002512 to cscnc1.dmp
recv_files phase=1
generate_files phase=2
generate_files finished
recv_files finished

sent 20063 bytes  received 6491 bytes  689.71 bytes/sec
total size is 186495054  speedup is 7023.24
_exit_cleanup(code=0, file=/home/lapo/packaging/tmp/rsync-2.6.3/main.c, line=114
6): about to call exit(0)

administrator at jf-deptest ~
$ rsync -az -vvv -B 65536 backup at jf-deptest::backup/cscnc1.dmp ./
opening tcp connection to jf-deptest port 873
Password:
receiving file list ...
recv_file_name(cscnc1.dmp)
received 1 names
done
recv_file_list done
get_local_name count=1 ./
generator starting pid=2408 count=1
delta transmission enabled
recv_generator(cscnc1.dmp,0)
generating and sending sums for 0
count=2846 rem=45134 blength=65536 s2length=3 flength=186495054
recv_files(1) starting
generate_files phase=1
recv_files(cscnc1.dmp)
cscnc1.dmp
recv mapped cscnc1.dmp of size 186495054
got file_sum
WARNING: cscnc1.dmp failed verification -- update discarded (will try again).
recv_generator(cscnc1.dmp,0)
generating and sending sums for 0
count=2846 rem=45134 blength=65536 s2length=16 flength=186495054
recv_files phase=1
generate_files phase=2
generate_files finished
recv_files(cscnc1.dmp)
cscnc1.dmp
recv mapped cscnc1.dmp of size 186495054
got file_sum
ERROR: cscnc1.dmp failed verification -- update discarded.
recv_files finished

sent 77003 bytes  received 12189 bytes  1382.82 bytes/sec
total size is 186495067  speedup is 2090.94
rsync error: some files could not be transferred (code 23) at /home/lapo/packagi
ng/tmp/rsync-2.6.3/main.c(1146)
_exit_cleanup(code=23, file=/home/lapo/packaging/tmp/rsync-2.6.3/main.c, line=11
46): about to call exit(23)

Please notise when block size is set beyond to 64K, it failed. I don't know 
whether it's the cause of the problem.

I also did the other experience. see the log:

$ rsync -a -vvv -B 65536 backup at jf-deptest::backup/cscnc1.dmp ./
opening tcp connection to jf-deptest port 873
Password:
receiving file list ...
recv_file_name(cscnc1.dmp)
received 1 names
done
recv_file_list done
get_local_name count=1 ./
generator starting pid=864 count=1
delta transmission enabled
recv_generator(cscnc1.dmp,0)
generating and sending sums for 0
count=2846 rem=45134 blength=65536 s2length=3 flength=186495054
recv_files(1) starting
generate_files phase=1
recv_files(cscnc1.dmp)
cscnc1.dmp
recv mapped cscnc1.dmp of size 186495054
got file_sum
set modtime of .cscnc1.dmp.002716 to (1104402055) Thu Dec 30 18:20:55 2004
renaming .cscnc1.dmp.002716 to cscnc1.dmp
recv_files phase=1
generate_files phase=2
generate_files finished
recv_files finished

sent 20062 bytes  received 56714 bytes  642.48 bytes/sec
total size is 186495067  speedup is 2429.08
_exit_cleanup(code=0, file=/home/lapo/packaging/tmp/rsync-2.6.3/main.c, line=114
6): about to call exit(0)

I removed the -z option and used 65536 as block size, it passed this time.

-- 
Configure bugmail: https://bugzilla.samba.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug, or are watching the QA contact.


More information about the rsync mailing list