Project

General

Profile

Actions

Bug #192

closed

inconsistent md5sum on repeated read of file

Added by Sage Weil almost 14 years ago. Updated over 13 years ago.

Status:
Resolved
Priority:
High
Assignee:
-
Category:
-
Target version:
% Done:

0%

Source:
Tags:
Backport:
Regression:
Severity:
Reviewed:
Affected Versions:
ceph-qa-suite:
Pull request ID:
Crash signature (v1):
Crash signature (v2):

Description

BTW: I think the .snap portion is not required for this to fail.

root@ceph-client:/mnt/ceph/static# ls -al
total 771329
drwxr-xr-x 1 root root    789840187 2010-06-10 16:03 .
drwxr-xr-x 1 root root 517690790518 2010-06-10 15:59 ..
-rw-r--r-- 1 root root      1316615 2010-05-27 19:49 ceph-0.20.2.tar.gz
-rw-r--r-- 1 root root     67633622 2010-05-16 23:37 linux-2.6.34.tar.bz2
-rw-r--r-- 1 root root     10477662 2010-03-04 01:50 php-5.3.2.tar.bz2
-rw-r--r-- 1 root root    710412288 2010-04-27 12:56 ubuntu-10.04-server-amd64.iso
root@ceph-client:/mnt/ceph/static# for i in {1..3}; do md5sum *; done
74e6f398d320bf1dd46db91210198dd9  ceph-0.20.2.tar.gz
10eebcb0178fb4540e2165bfd7efc7ad  linux-2.6.34.tar.bz2
46f500816125202c48a458d0133254a4  php-5.3.2.tar.bz2
8ee25c78f4c66610b6872a05ee9ad81b  ubuntu-10.04-server-amd64.iso
74e6f398d320bf1dd46db91210198dd9  ceph-0.20.2.tar.gz
10eebcb0178fb4540e2165bfd7efc7ad  linux-2.6.34.tar.bz2
46f500816125202c48a458d0133254a4  php-5.3.2.tar.bz2
8ee25c78f4c66610b6872a05ee9ad81b  ubuntu-10.04-server-amd64.iso
74e6f398d320bf1dd46db91210198dd9  ceph-0.20.2.tar.gz
10eebcb0178fb4540e2165bfd7efc7ad  linux-2.6.34.tar.bz2
46f500816125202c48a458d0133254a4  php-5.3.2.tar.bz2
8ee25c78f4c66610b6872a05ee9ad81b  ubuntu-10.04-server-amd64.iso
root@ceph-client:/mnt/ceph/static# mkdir .snap/test_snap
root@ceph-client:/mnt/ceph/static# cd .snap/test_snap/
root@ceph-client:/mnt/ceph/static/.snap/test_snap# for i in {1..3}; do md5sum *; done
74e6f398d320bf1dd46db91210198dd9  ceph-0.20.2.tar.gz
10eebcb0178fb4540e2165bfd7efc7ad  linux-2.6.34.tar.bz2
46f500816125202c48a458d0133254a4  php-5.3.2.tar.bz2
8ee25c78f4c66610b6872a05ee9ad81b  ubuntu-10.04-server-amd64.iso
74e6f398d320bf1dd46db91210198dd9  ceph-0.20.2.tar.gz
85de7e01223f5576c6836dceb5b1723d  linux-2.6.34.tar.bz2
99b8bd2ead16e14eedfe20d4178e85f2  php-5.3.2.tar.bz2
c600470f441d13272398b2c7bb726614  ubuntu-10.04-server-amd64.iso
74e6f398d320bf1dd46db91210198dd9  ceph-0.20.2.tar.gz
20ab8fa2bf99fddd822c578d25631c2f  linux-2.6.34.tar.bz2
99b8bd2ead16e14eedfe20d4178e85f2  php-5.3.2.tar.bz2
5f5024d8b1a7e865c7214bb8e064cea3  ubuntu-10.04-server-amd64.iso
root@ceph-client:/mnt/ceph/static/.snap/test_snap#


root@ceph-client:/mnt/ceph/static# cd /root
root@ceph-client:~# tar -xjf /mnt/ceph/static/.snap/test_snap/php-5.3.2.tar.bz2

bzip2: Data integrity error when decompressing.
Input file = (stdin), output file = (stdout)

It is possible that the compressed file(s) have become corrupted.
You can use the -tvv option to test integrity of such files.

You can use the `bzip2recover' program to attempt to recover
data from undamaged sections of corrupted files.

tar: Unexpected EOF in archive
tar: Unexpected EOF in archive
tar: Error is not recoverable: exiting now
root@ceph-client:~# tar -xjf /mnt/ceph/static/php-5.3.2.tar.bz2

bzip2: Data integrity error when decompressing.
Input file = (stdin), output file = (stdout)

It is possible that the compressed file(s) have become corrupted.
You can use the -tvv option to test integrity of such files.

You can use the `bzip2recover' program to attempt to recover
data from undamaged sections of corrupted files.

tar: Unexpected EOF in archive
tar: Unexpected EOF in archive
tar: Error is not recoverable: exiting now
root@ceph-client:~# md5sum /mnt/ceph/static/php-5.3.2.tar.bz2
8d0195e53fc0119476a8ea33dc60710a /mnt/ceph/static/php-5.3.2.tar.bz2
root@ceph-client:~#

Actions #1

Updated by Sage Weil almost 14 years ago

  • Priority changed from Normal to High
Actions #2

Updated by Sage Weil almost 14 years ago

  • Target version set to v0.21
Actions #3

Updated by Yehuda Sadeh almost 14 years ago

Problem seem to be rbd branch related, introduced by the splitting of calc_layout to helper function: plen is not updated when calling calc_layout(). This leads to rc and len not equal at ceph_readpages() which in the end leads to zeroed pages.

Fixed by commit 572b6526306fd796bfd61871dc5309b1bfa4b09f. Fix not tested yet.

Actions #4

Updated by Sage Weil almost 14 years ago

  • Status changed from New to Resolved
Actions

Also available in: Atom PDF