Hi,

I suggest to upgrade to version 1.2.135, specially because of the
database corruption problem fixed "When killing the process while the
database was writing ..., the database could become corrupt..." (see
also the change log). Unfortunately it's not possible to guarantee
there are no bugs now, but the new corruption test did find quite many
problems. This test is actually not a standalone test, but an "aspect"
of all regular test cases. This aspect copies the database file after
each write operation of the regular test cases, and then tries to
re-open this database file. I didn't run this corruption test on the
old file format however. In theory, you could, but I don't plan to do
that myself because I don't plan to support the old file format.

There is a migration tool. See also the change log, version 1.2.130:
"A tool to migrate an old database from the non-page store format to
the newest version has been added in
src/tools/org/h2/dev/util/Migrate.java. This file is not included in
the jar file currently." This tool downloads the h2-1.2.127.jar from
the internet, runs the old "org.h2.tools.Script" as a separate
process, and then creates a new database from the SQL script. Instead
of running as a separate process it might be better to use separate
class loader (see TestOldVersion on how to do that). I forgot why the
migration tool doesn't use an URLClassLoader as well. Please tell me
if are interested in an improved migration tool.

> The frequency with which new releases of H2
> seem to be coming out recently is, frankly, alarming.

Since quite a long time, there is a new version about every two weeks.
This is the planned release cycle for the near future. I know other
databases have a longer release cycle, but I believe with enough test
cases (and the right test cases) a short release cycle is not that
risky, and better in the long run. Usually new features are disabled
by default (using a system property) until there are enough test
cases. In beta versions, the default for such system properties is
changed. However, even having a few beta versions doesn't always
ensure there are no bugs in stable releases, but I guess there is no
easy way to solve this.

Regards,
Thomas

-- 
You received this message because you are subscribed to the Google Groups "H2 
Database" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/h2-database?hl=en.

Reply via email to