Skip to content

"This store is closed" after two-phase commit #3636

@wburzyns

Description

@wburzyns

Please be advised that there is some issue wrt. two-phase commit in the current master.
The issue manifests itself in the following way: after a 2pc operation the DB seems to be working normally: read, insert ops are fine. But when I call 'dbConnection.close' the following entries appear in the tracefile:

...
Caused by: org.h2.jdbc.JdbcSQLNonTransientException: IO Exception: "Closing" [90028-219]
	at org.h2.message.DbException.getJdbcSQLException(DbException.java:554)
	at org.h2.message.DbException.getJdbcSQLException(DbException.java:477)
	... 34 more
Caused by: org.h2.mvstore.MVStoreException: This store is closed [2.2.219/4]
	at org.h2.mvstore.DataUtils.newMVStoreException(DataUtils.java:996)
	at org.h2.mvstore.MVStore.checkOpen(MVStore.java:1426)
	at org.h2.mvstore.MVStore.getMetaMap(MVStore.java:561)
	at org.h2.mvstore.FileStore.rewriteChunks(FileStore.java:1902)
	at org.h2.mvstore.FileStore.compactRewrite(FileStore.java:1887)
	at org.h2.mvstore.FileStore.rewriteChunks(FileStore.java:1848)
	at org.h2.mvstore.FileStore.lambda$compact$0(FileStore.java:876)
	at org.h2.mvstore.MVStore.tryExecuteUnderStoreLock(MVStore.java:947)
	at org.h2.mvstore.FileStore.compact(FileStore.java:876)
	at org.h2.mvstore.RandomAccessStore.compactStore(RandomAccessStore.java:425)
	at org.h2.mvstore.FileStore.compactStore(FileStore.java:887)
	at org.h2.mvstore.FileStore.stop(FileStore.java:275)
	at org.h2.mvstore.MVStore.closeStore(MVStore.java:692)
	at org.h2.mvstore.MVStore.close(MVStore.java:643)
	at org.h2.mvstore.db.Store.close(Store.java:364)
	... 32 more

This issue is present with both BLOB and VARBINARY types. There was no such problem on H2-2.1.214 and earlier versions.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions