When deleting a Location before doing any write throws following exception:
Exception in thread "main" java.lang.IllegalStateException
at journal.io.api.Journal.sync(Journal.java:270)
at journal.io.api.DataFileAccessor.updateLocation(DataFileAccessor.java:60)
at journal.io.api.Journal.delete(Journal.java:337)
at com.github.jeluard.stone.DeleteBeforeWrite.main(DeleteBeforeWrite.java:16)
Caused by: java.lang.NullPointerException
at journal.io.api.Journal$WriteFuture.get(Journal.java:1009)
at journal.io.api.Journal$WriteFuture.get(Journal.java:988)
at journal.io.api.Journal.sync(Journal.java:265)
... 3 more
Same code but with a write forced before the delete runs fine.
When deleting a Location before doing any write throws following exception:
Same code but with a write forced before the delete runs fine.