Hi,

I got multiple reports with this problem, but unfortunately I don't have a
test case yet.

Could you provide a test case? If that's too complicated, it would be
enough to append ";trace_level_file=3" to the database URL and send me the
<databaseName>.trace.db file(s).

Regards,
Thomas



On Tuesday, September 8, 2015, rho <[email protected]> wrote:

> Hi
>
> I am using hibernate-java8 5.0.1 together with H2 1.4.188, and my database
> gets corrupted almost every time I execute schema update statements like
> adding or dropping columns.
>
> I don't know if this is related to hibernate or not.
>
> Currently I am forced to back up the db before every schema update, and if
> I do a script / run-script cycle before the next schema update, the
> corruption does not occur. But then after I work with the db for a while,
> the corruption happens again during the next schema update. I suppose that
> means that something bad happens silently in the time before the schema
> update, but is somehow triggered by the schema update.
>
> Caused by: java.io.IOException: Block not found in id [1, -52, 64, -35, 8]
> [1.4.188/50]
>     at org.h2.mvstore.StreamStore$Stream.read(StreamStore.java:466)
>     at org.h2.util.IOUtils.copy(IOUtils.java:167)
>     at org.h2.util.IOUtils.readBytesAndClose(IOUtils.java:282)
>     at org.h2.value.ValueLobDb.getBytesNoCopy(ValueLobDb.java:330)
>     ... 50 more
> Caused by: java.lang.IllegalStateException: Block 1117 not found [1.4.188/
> 50]
>     at org.h2.mvstore.DataUtils.newIllegalStateException(DataUtils.java:
> 773)
>     at org.h2.mvstore.StreamStore.getBlock(StreamStore.java:388)
>     at org.h2.mvstore.StreamStore$Stream.nextBuffer(StreamStore.java:503)
>     at org.h2.mvstore.StreamStore$Stream.read(StreamStore.java:460)
>     ... 53 more
>
> I will gladly provide my database, but preferrably not publicly.
>
> -- Reto
>
> --
> You received this message because you are subscribed to the Google Groups
> "H2 Database" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected]
> <javascript:_e(%7B%7D,'cvml','h2-database%[email protected]');>
> .
> To post to this group, send email to [email protected]
> <javascript:_e(%7B%7D,'cvml','[email protected]');>.
> Visit this group at http://groups.google.com/group/h2-database.
> For more options, visit https://groups.google.com/d/optout.
>

-- 
You received this message because you are subscribed to the Google Groups "H2 
Database" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/h2-database.
For more options, visit https://groups.google.com/d/optout.

Reply via email to