Hello,
When I run the H2 unit tests TestFileLockSerialized with property h2.ModifyOnWrite set to true, the testTwoWriters test takes quite a lot of time (I killed it after about two hours). I'm wondering if there might not be an interlock. The main thread is hung on the "drop table test" statement whereas the other thread is on its "select * from test" statement.
I know the h2.ModifyOnWrite is new and not for production yet but maybe this information could help make it work better in most situations.
We made these tests because we're experiencing troubles with the SERIALIZED file_lock mode and are looking for improvements (see
https://groups.google.com/d/topic/h2-database/unohFtz83cg/discussion for the troubles we're facing).
Regards