Is writing from several JVM to same location at same time supported?

38 views
Skip to first unread message

toiv...@gmail.com

unread,
Aug 5, 2013, 5:06:31 AM8/5/13
to jour...@googlegroups.com
Journal.IO looks great.

Possibly i am trying to misuse it.
Is writing from several JVM to same location at same time supported?
Experiment shows what I can write from 2 JVM at same time, but journal get corrupted and later opening for reading fails.
Different exceptions occurs, for example:
 

Exception in thread "main" java.io.EOFException

      at java.io.RandomAccessFile.readFully(Unknown Source)

      at java.io.RandomAccessFile.readFully(Unknown Source)

      at journal.io.api.DataFileAccessor.readLocationData(DataFileAccessor.java:355)

      at journal.io.api.DataFileAccessor.readNextLocationDetails(DataFileAccessor.java:180)

      at journal.io.api.Journal.goToNextLocation(Journal.java:747)

      at journal.io.api.Journal.recoveryCheck(Journal.java:842)

      at journal.io.api.Journal.open(Journal.java:204)

thank you
toivo

 

Sergio Bossa

unread,
Aug 5, 2013, 5:15:26 AM8/5/13
to jour...@googlegroups.com
Hi Toivo,

writing from multiple JVMs to the same journal isn't currently supported.

Regards,

Sergio B.
> --
> You received this message because you are subscribed to the Google Groups
> "Journal.IO" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to journalio+...@googlegroups.com.
> For more options, visit https://groups.google.com/groups/opt_out.
>
>



--
Sergio Bossa
http://www.linkedin.com/in/sergiob

toiv...@gmail.com

unread,
Aug 5, 2013, 5:51:08 AM8/5/13
to jour...@googlegroups.com
Thank you for quick reply

We are building new system which contains several nodes in cluster.
Each node use separate JVM.
It seems what each node needs its own reliable event journal (based on Journal.IO)

And additionally we need some sort of distributed logging which aggregates all information from all nodes together.
Maybe Apache Kafka which isnt as reliable as Journal.IO

I am very grateful for any ideas or comments.

toivo
Reply all
Reply to author
Forward
0 new messages