Hi, The MVStore closes itself on out of disk space (when writing fails), what you see is a NullPointerException because the store is closed. It's a weird exception. I will change that to a "store is closed" exception. Other than that, I think the store is not corrupt - just that it is closed.
I think closing the store and failing quickly is a reasonable behavior. Of course it would be possible to block writing until disk space is available. This different behavior could be implemented in the file system abstraction (using a FilePath wrapper). Regards, Thomas On Sunday, June 28, 2015, Jamie <[email protected]> wrote: > Greetings > > First off, thank you for such wonderful software! We are using MVStore in > H2-1.4.187.jar to implement a basic queuing engine. I've noticed that the > database enters a corrupted state when hard drive on which it resides runs > out of diskspace. After some diskspace is freed, a null ptr exception is > outputted on MVStore line 1667. > > 2015-06-28 04:46:11 t.c.s.a.mc [ERROR] failed to store blob > {blob='Discrete Math end 10:55'} > java.lang.NullPointerException: null > at org.h2.mvstore.MVStore.sync(MVStore.java:1667) > ~[h2-1.4.187.jar:1.4.187] > at com.stimulus.archiva.queue.g.j(MailArchiva:189) ~[g.class:na] > at com.stimulus.archiva.queue.g.a(MailArchiva:183) ~[g.class:na] > at com.stimulus.archiva.queue.b.a(MailArchiva:99) ~[b.class:na] > at com.stimulus.archiva.queue.c.c(MailArchiva:232) ~[c.class:na] > at com.stimulus.archiva.receive.ReceiveService.a(MailArchiva:161) > ~[ReceiveService.class:na] > > My assumption would be that MVStore should not allow itself to enter a > corrupted state, even if there is no disk space available. Is this correct? > > Jamie > > -- > 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.
