Yea, a quick search of my classpath shows about 5 different libraries doing an interrupt at one point or another, and I'm not even sure yet which one was biting me.
I'm not trying to use H2, I'm just trying to use the MVStore directly. The MVStore jar package doesn't contain the classes necessary to use the Retry workaround... I had to add the H2 jar files to my classpath to get it to work - at least, I think I have it working right now. I need to test more. FYI, I've been doing a compare of Xodus vs MV Store for my use pattern, and so far, MVStore is way faster than Xodus :) The one thing I don't have a good handle on with MVStore, however, is how the versions work if I don't want any versions beyond current. The documentation for .setVersionsToKeep(0); only references inMemory stores.... for disk stores, I'm a little lost. Does it work to set it to 0? Or, do I also need to call store.compactMoveChunks() at some interval? Thanks, Dan On Thursday, June 28, 2018 at 5:18:25 AM UTC-5, Thomas Mueller Graf wrote: > > Hi, > > > not interrupting is easier said than done with other libraries. > > Yes... One case, that was biting us, is using > java.util.concurrent.ExecutorService.shutdownNow(). This was calling > Thread.interrupt() in our case. It was relatively easy to resolve: now we > use shutdown() instead. See > https://issues.apache.org/jira/browse/SLING-5416 > > Regards, > Thomas > > On Thu, Jun 28, 2018 at 10:32 AM Noel Grandin <[email protected] > <javascript:>> wrote: > >> >> >> On 2018/06/28 9:59 AM, Dan 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. >> >> The easiest approach is just to run H2 as a TCP server. Even if it's just >> inside the same process, the TCP stack will >> act as a cut-out. >> >> -- >> 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:>. >> To post to this group, send email to [email protected] >> <javascript:>. >> 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.
