[infinispan-dev] storeAsBinary: serialize keys, values, or both?

Erik Salter esalter at bnivideo.com
Thu May 12 12:10:12 EDT 2011


Funny you should mention this -- this is a VERY critical consideration for us.

Erik

-----Original Message-----
From: infinispan-dev-bounces at lists.jboss.org [mailto:infinispan-dev-bounces at lists.jboss.org] On Behalf Of Sanne Grinovero
Sent: Thursday, May 12, 2011 11:59 AM
To: infinispan -Dev List
Subject: Re: [infinispan-dev] storeAsBinary: serialize keys, values, or both?

thank you.
Not very critical for functionality, but now I'm wondering if the consistent hash is being calculated on the binary form of the key?
Just curious if we might end up with inconsistent definitions of "owner" in case it's possible to have the hash function invoked at different points of the key's lifecycle (i.e. if at some point it's calculated on the object form, and in other points of the code it's calculated on byte[], then something would break).

Especially, if I where to write any custom extension needing to know the owner of a specific key, if I have to apply some considerations.

Sanne

2011/5/12 Manik Surtani <manik at jboss.org>:
>
> On 12 May 2011, at 16:06, Manik Surtani wrote:
>
> On 11 May 2011, at 18:27, Sanne Grinovero wrote:
>
> I'm also wondering how the equals is performed on a serialized key; I
> assume they are compared as byte[], but if that's the case that should
> be clearly documented as it would ignore any custom equals()
> implementation.
>
> Your assumption is correct:
> https://github.com/infinispan/infinispan/blob/master/core/src/main/jav
> a/org/infinispan/marshall/MarshalledValue.java#L176
> Good point that it needs to be documented clearly.  Doing it now.
>
> Done:
> http://community.jboss.org/wiki/Marshalling#Equality_Considerations
> --
> Manik Surtani
> manik at jboss.org
> twitter.com/maniksurtani
> Lead, Infinispan
> http://www.infinispan.org
>
>
>
> _______________________________________________
> infinispan-dev mailing list
> infinispan-dev at lists.jboss.org
> https://lists.jboss.org/mailman/listinfo/infinispan-dev
>

_______________________________________________
infinispan-dev mailing list
infinispan-dev at lists.jboss.org
https://lists.jboss.org/mailman/listinfo/infinispan-dev

The information contained in this message is legally privileged and confidential, and is intended for the individual or entity to whom it is addressed (or their designee). If this message is read by anyone other than the intended recipient, please be advised that distribution of this message, in any form, is strictly prohibited. If you have received this message in error, please notify the sender immediately and delete or destroy all copies of this message.



More information about the infinispan-dev mailing list