This content has been marked as final.
Show 11 replies
-
1. Re: data loss when reading v7 hashes with db 4.7.25
"Oracle, Sandra Whitman-Oracle" Apr 7, 2009 2:29 PM (in response to 657965)Hello,
Can you provide the details of what you are doing
at each step here and what error messages, etc, you
are receiving at each point. Also what is the platform/
version you are based on.
Thanks,
Sandra -
2. Re: data loss when reading v7 hashes with db 4.7.25
657965 Apr 8, 2009 12:27 PM (in response to "Oracle, Sandra Whitman-Oracle")The following is with db 3.2.9 and db 4.7.25:
/db3.2.9/db_load -t hash -T v7hash.db <dataset
cp v7hash.db corruption.db
/db4.7.25/db_dump -d a corruption.db
cmp -lb v7hash.db corruption.db
This is on Debian amd64. -
3. Re: data loss when reading v7 hashes with db 4.7.25
526060 Apr 14, 2009 9:20 AM (in response to 657965)Hi,
Could you tell us what exactly the problem is?
Are you just surprised that db_dump is changing the "corruption.db" database? What are you attempting to do with the "corruption.db" after the db_dump that fails?
I'll get back to you about the verify patch tomorrow.
Regards,
Alex Gorrod
Oracle Berkeley DB -
4. Re: data loss when reading v7 hashes with db 4.7.25
657965 Apr 19, 2009 5:26 PM (in response to 526060)I am confused about why it is modifying the database at all, but especially why it is deleting all the data. -
5. Re: data loss when reading v7 hashes with db 4.7.25
526060 Apr 20, 2009 2:25 AM (in response to 657965)Hi,
I've just spent time attempting to reproduce the issue you have reported. I am not able to.
I have built a version of 4.3.29 and 4.7.25, including the Tcl library. Then run:
$ cd db-4.3.29/build_win32/Debug
$ echo "source ../../test/test.tcl; eval test001 hash" | tclsh84g.exe
$ cd ../../../db-4.7.25/build_windows/Debug
$ mkdir dump_test
$ cp ../../../db-4.3.29/build_win32/Debug/TESTDIR/test001.db dump_test/db_43.db
$ cp dump_test/db_43.db dump_test/alter.db
$ ./db_dump dump_test/alter.db > /dev/null
$ cmp dump_test/db_43.db dump_test/alter.db
The first two commands are creating a database. The db_dump utility from 4.7 was able to dump the contents of the database created using DB 4.3. The dumped file was not altered after db_dump was run.
I was running this on Windows, using Cygwin. There is no reason why the behavior would be platform dependant.
I also attempted to recreate the failure using a database created with db_load in 4.3. There was no failure.
If you can provide a more concrete reproducible example, I'll happily investigate further.
Regards,
Alex Gorrod
Berkeley DB engineer -
6. Re: data loss when reading v7 hashes with db 4.7.25
526060 Apr 20, 2009 2:36 AM (in response to 526060)Hi,
4.7's db_verify on the v7 hash gives an error about an impossible max_buckets setting in the metadata page.
I also can't reproduce this failure.
It seems to do this because it clobbers the last_pgno setting and compares 1, for instance, against 0 instead of 2.
I don't think the patch you supplied is the correct solution. If the retrieved metadata has a last_pgno of 0, then the database has been corrupted.
Can you provide a reproducible test case, or at least a stack trace of the failure?
Regards,
Alex Gorrod -
7. Re: data loss when reading v7 hashes with db 4.7.25
657965 Apr 22, 2009 12:18 AM (in response to 526060)Does db4.3 produce a version 7 hash on Windows? It produces a version 8 hash on unix, which is why I had to use db3.2.9 to reproduce this problem. -
8. Re: data loss when reading v7 hashes with db 4.7.25
526060 Apr 24, 2009 5:42 AM (in response to 657965)Hi,
Sorry for my earlier reply. I must have been having a vacant day.
I can reproduce the problem with Berkeley versions 3.2.9 and 4.7.25. I will investigate further and let you know what I find.
Regards,
Alex Gorrod
Oracle Berkeley DB -
9. Re: data loss when reading v7 hashes with db 4.7.25
657965 May 31, 2009 2:59 AM (in response to 526060)Any news? -
10. Re: data loss when reading v7 hashes with db 4.7.25
794923 Aug 31, 2010 1:42 PM (in response to 526060)Hi there... 16 months have passed by, can we assume that someone will eventually look into this issue?
Thanks, -
11. Re: data loss when reading v7 hashes with db 4.7.25
852920 Apr 19, 2011 7:22 PM (in response to 526060)Ping?
This bug is affecting our users upgrading to Debian squeeze and we still would like to have a fix in some .point release if possible.
O.