On 6 August 2014 19:04, Dan Berindei <dan.berindei(a)gmail.com> wrote:
Sanne, you really need to say more, I was hoping to see more
information in
the PR/JIRA but both descriptions are very terse :)
hum ok if I need to spoil the fun :)
If I understand correctly, the problem is that you're keeping a
reference to
a cache value and modifying it without a put(), which could break
marshalling for a concurrent put()?
Exactly, my problem was that I would write a concurrent structure, but
without preventing this structure from being manipulated from
different threads.
The marshaller would first write the size, then iterate on the
elements and write each of them, but there could be a mismatch between
the written size and the actually written entries, causing such weird
exceptions.
I guess the idea of writing a concurrent map while keeping a reference
to it might be a dumb mistake, but the exception and error happening
in such a different area makes it "interesting" to correlate to the
actual cause.
Cheers,
Sanne