You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@ignite.apache.org by Marasoiu Nicolae <Ni...@cegeka.com> on 2016/08/23 07:08:26 UTC
cache.put(new Pair(String, String), value) ends up with either Pair
or BinaryObject key?
Hi everyone,
We hit a problem: when we do a cache put with a key which is a class with just String values, and hashCode and equals generated with the IDE, then, when we do a cache get we get null for some of the keys, but we get correct values for other keys. When looking with Visor, we noticed that the keys we can get the value for, are the right class, Pair, in this case, while the keys that give back null, are BinaryObject instances as presented by Visor.
Did you encounter this before?
Thanks,
Nicu
Met vriendelijke groeten/Meilleures salutations/Best regards
Nicolae Marasoiu
Agile Developer
E Nicolae.Marasoiu@cegeka.com<ma...@cegeka.com>
[http://signature.cegeka.com/mailsignature_cgk.png]
CEGEKA * 15-17 Ion Mihalache Blvd. Tower Center Building, 4th,5th,6th fl * RO-011171 Bucharest (RO) * T +40 21 336 20 65 * www.cegeka.com
Volg Cegeka: [http://signature.cegeka.com/twitter.png] <http://www.twitter.com/cegeka> [http://signature.cegeka.com/linkedin.png] <http://www.linkedin.com/company/cegeka> [http://signature.cegeka.com/facebook.png] <http://www.facebook.com/Cegeka> [http://signature.cegeka.com/google-plus.png] <http://www.cegeka.be/googleplus>
Re: cache.put(new Pair(String, String), value) ends up with either
Pair or BinaryObject key?
Posted by Vladislav Pyatkov <vl...@gmail.com>.
Hello,
It is strange behavior, could you please provide code example?
On Tue, Aug 23, 2016 at 10:08 AM, Marasoiu Nicolae <
Nicolae.Marasoiu@cegeka.com> wrote:
>
> Hi everyone,
>
>
> We hit a problem: when we do a cache put with a key which is a class with
> just String values, and hashCode and equals generated with the IDE, then,
> when we do a cache get we get null for some of the keys, but we get correct
> values for other keys. When looking with Visor, we noticed that the keys we
> can get the value for, are the right class, Pair, in this case, while the
> keys that give back null, are BinaryObject instances as presented by Visor.
>
>
> Did you encounter this before?
>
>
> Thanks,
>
> Nicu
>
>
> Met vriendelijke groeten/Meilleures salutations/Best regards
>
> Nicolae Marasoiu
> Agile Developer
> E Nicolae.Marasoiu@cegeka.com
>
> *CEGEKA **•* 15-17 Ion Mihalache Blvd. Tower Center Building, 4th,5th,6th
> fl • RO-011171 Bucharest (RO) • T +40 21 336 20 65 • *www.cegeka.com
> <http://www.cegeka.com>*
> *Volg Cegeka: <http://www.twitter.com/cegeka>
> <http://www.linkedin.com/company/cegeka> <http://www.facebook.com/Cegeka>
> <http://www.cegeka.be/googleplus> *
>
--
Vladislav Pyatkov