Riak changing the first two bytes of data?

Sam Tingleff sam at tingleff.com
Fri May 28 17:46:35 EDT 2010


It sounds crazy, I know.

I'm using the Java client with riak 0.10.1-1. Sending a byte array seems to
work if it is a UTF-8 encoded string. But if I send serialized object data,
or just compressed bytes, the first two bytes seem to come back modified on
read.

>From the debugger... Sending:
[31, -117, 8, 0, 0, 0, 0, 0, 0, 0, -53, 72, -51, -55, -55, 87, 72, 41, 77,
73, 5, 0, 108, 24, 72, 30, 10, 0, 0, 0]

I get back:
[31, 63, 8, 0, 0, 0, 0, 0, 0, 0, -24, 72, -22, -125, -125, 87, 72, 41, 77,
73, 5, 0, 108, 24, 72, 30, 10, 0, 0, 0]

What's going on? Thanks!
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.basho.com/pipermail/riak-users_lists.basho.com/attachments/20100528/fd777d08/attachment.html>


More information about the riak-users mailing list