Thread safety

27 views
Skip to first unread message

Julien Eluard

unread,
Jan 18, 2013, 4:01:53 PM1/18/13
to jour...@googlegroups.com
Hi,

I understand from the documentation a Journal is thread-safe. Still I have some specific scenario I would like to ensure are supported:
* while iterating on the redo list delete some specific locations
* compacting periodically from a background thread while performing other operations: mix of redo/undo, write and delete

I am pretty confident those are supported but can someone confirm it?

Thanks,
Julien

Sergio Bossa

unread,
Jan 18, 2013, 5:22:16 PM1/18/13
to jour...@googlegroups.com
On Fri, Jan 18, 2013 at 9:01 PM, Julien Eluard <julien...@gmail.com> wrote:

> I understand from the documentation a Journal is thread-safe. Still I have
> some specific scenario I would like to ensure are supported:
> * while iterating on the redo list delete some specific locations

This is thread safe.

> * compacting periodically from a background thread while performing other
> operations: mix of redo/undo, write and delete

Compaction is completely concurrent with respect to
writes/deletes/reads, and it has been tested so.
Compaction during redo/undo has not been tested that much
unfortunately, as both features came just in the latest release: it
would be great if you could give them a spin and get back with
feedback.
I'll be happy to fix any problems.

Cheers,

Sergio B.

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

Julien Eluard

unread,
Jan 20, 2013, 1:55:01 PM1/20/13
to jour...@googlegroups.com
Great! So far I had no issues, I let you know how it goes after some more tests.

If you are curious to see how I use Journal.IO you can take a look here: https://github.com/jeluard/stone/tree/master/implementations/storages/journalio

Julien

Sergio Bossa

unread,
Jan 20, 2013, 6:08:20 PM1/20/13
to jour...@googlegroups.com
On Sun, Jan 20, 2013 at 6:55 PM, Julien Eluard <julien...@gmail.com> wrote:

> Great! So far I had no issues, I let you know how it goes after some more
> tests.

Great. I'll do some more tests on my own too.

> If you are curious to see how I use Journal.IO you can take a look here:
> https://github.com/jeluard/stone/tree/master/implementations/storages/journalio

Very cool.
I have a crush for time series data and its usefulness, I'll
definitely have a closer look.

Stay in touch ;)
Reply all
Reply to author
Forward
0 new messages