we use H2 DB(version 1.4.195) in production for a Java desktop app. Recently we noticed that our customers have the corrupted DB and they all have a solid-state drive (SSD) on Windows.
the problem in the log is always about the index:
org.h2.jdbc.JdbcSQLException: File corrupted while reading record: "index not found 201". Possible solution: use the recovery tool;
the DB is connected locally and the connection string is:
jdbc:h2:file:C://TEMP//database";LOCK_TIMEOUT=10000;LOCK_MODE=3;MVCC=FALSE;MV_STORE=false;IFEXISTS=TRUE
Using the same parameters on hard disk drive (HDD) we have no problem.
Java Version: 1.8 Windows: 7/10 File system: NTFS
in house is not possible to reproduce the issue but on the customer side the problem happens often.
Any suggestion for this particular scenario?