I can't answer your question, but I got rid of the Unexpectred Code Path error by not using LOG=2. FWIW.
On Thu, Apr 16, 2009 at 9:27 AM, hendrik <[email protected]> wrote: > > Hi, > > a customer of mine had some random crash which left the h2 1.0.79 > database corrupted. > Recovery works, but a lot of data is missing. > When opening _without_ recovery turned on, I get this trace entry: > > java.lang.RuntimeException: Unexpected code path > at org.h2.message.Message.getInternalError(Message.java:179) > at org.h2.message.Message.getInternalError(Message.java:280) > at org.h2.store.DiskFile.init(DiskFile.java:407) > at org.h2.engine.Database.open(Database.java:539) > at org.h2.engine.Database.<init>(Database.java:212) > at org.h2.engine.Engine.openSession(Engine.java:56) > at org.h2.engine.Engine.openSession(Engine.java:125) > at org.h2.engine.Engine.getSession(Engine.java:108) > at org.h2.engine.Session.createSession(Session.java:242) > at org.h2.jdbc.JdbcConnection.<init>(JdbcConnection.java:115) > at org.h2.jdbc.JdbcConnection.<init>(JdbcConnection.java:88) > at org.h2.Driver.connect(Driver.java:57) > at org.h2.server.web.WebServer.getConnection(WebServer.java:625) > at org.h2.server.web.WebThread$1LoginTask.run(WebThread.java:1165) > at java.lang.Thread.run(Thread.java:613) > > I guess the data is simply gone. > > No, this isn't the first time an h2 1.0.79 database got corrupted due > to program crashes. > What I am wondering is, how can I better avoid data loss (except for > backing it up, of course)? > Would upgrading to the latest h2 1.1 be beneficial at all? > In other words, is this is problem that has been fixed already? > > Thanks, > > -hendrik > > PS: If you want to take a look at the corrupted database, it's at > http://www.beatunes.com/download/corrupt_h2_1_0_79.zip > > > > -- C. Schanck --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
