Hi,

Try this:  "retry:nio:" + ... See also TestConcurrent.testInterruptReopen()
(It would be good to improve documentation for this I guess).

Regards,
Thomas


On Thu, Jun 28, 2018 at 9:59 AM Dan <[email protected]> wrote:

> I've been going down this road:
> https://github.com/h2database/h2database/issues/227 trying to figure out
> how to work around interrupts with MVStore.
>
> Everyone just says use 'retry' or don't interrupt... not interrupting is
> easier said than done with other libraries.
>
> I can't figure out the syntax for "retry".
>
> I've tried something like this:
>
> this.store = new MVStore.Builder().fileName("retry:" + new File(mvFolder,
> MV_STORE + ".mv").getAbsolutePath()).open();
>
> But that doesn't work:
>
>  Directory does not exist: nio:retry:/mnt.....
>
> I've been poking around in the source code, trying to figure out how to
> pass it in, and I'm quite confused.
>
> In the the maven packaged jar for 1.4.197, there is no class named 
> FilePathRetryOnInterrupt
> which is what is supposed to provide the scheme, as far as I can tell.
>
> It looks like that class is only included in the H2 jar file?
>
> If MV Store is what gets broken, why isn't the fix / workaround included
> in the MV Store jar?
>
> This issue / workaround might be a good thing to add to the FAQ, as well.
>
> Thanks,
>
> Dan
>
> --
> 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 https://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 https://groups.google.com/group/h2-database.
For more options, visit https://groups.google.com/d/optout.

Reply via email to