You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
After switching from SpringBoot 3.0 to 3.2 I've got the following error
Caused by: org.h2.mvstore.MVStoreException: The write format 2 is smaller than the supported format 3 [2.2.224/5]
at org.h2.mvstore.DataUtils.newMVStoreException(DataUtils.java:996) ~[h2-2.2.224.jar:2.2.224]
at org.h2.mvstore.FileStore.getUnsupportedWriteFormatException(FileStore.java:943) ~[h2-2.2.224.jar:2.2.224]
at org.h2.mvstore.FileStore.processCommonHeaderAttributes(FileStore.java:547) ~[h2-2.2.224.jar:2.2.224]
at org.h2.mvstore.RandomAccessStore.readStoreHeader(RandomAccessStore.java:227) ~[h2-2.2.224.jar:2.2.224]
at org.h2.mvstore.FileStore.start(FileStore.java:916) ~[h2-2.2.224.jar:2.2.224]
at org.h2.mvstore.MVStore.<init>(MVStore.java:289) ~[h2-2.2.224.jar:2.2.224]
at org.h2.mvstore.MVStore$Builder.open(MVStore.java:2035) ~[h2-2.2.224.jar:2.2.224]
at org.h2.mvstore.db.Store.<init>(Store.java:133) ~[h2-2.2.224.jar:2.2.224]
... 35 common frames omitted
SpringBoot 3.0 is using h2 v2.1.214
SpringBoot 3.2 is using h2 v2.2.224
Do I understand it correctly - newest version of H2 can't read its own db files from previous minor version?
The text was updated successfully, but these errors were encountered:
Yes, you understand it correctly. The only supported upgrade path requires exporting you database as SQL script, using an old H2 version, then creating a new empty database using new H2 version and executing SQL script there. In many cases it might work without this (like upgrade from 2.2.222 -> 2.2.224), but this is not guaranteed, especially when format was explicitly changed. And that format check is there to prevent data corruption. You should go back and follow that recommended procedure.
After switching from SpringBoot 3.0 to 3.2 I've got the following error
SpringBoot 3.0 is using h2 v2.1.214
SpringBoot 3.2 is using h2 v2.2.224
Do I understand it correctly - newest version of H2 can't read its own db files from previous minor version?
The text was updated successfully, but these errors were encountered: