You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@ignite.apache.org by "Denis Magda (JIRA)" <ji...@apache.org> on 2016/12/21 20:46:58 UTC

[jira] [Closed] (IGNITE-3447) put/get value by AffinityKey

     [ https://issues.apache.org/jira/browse/IGNITE-3447?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Denis Magda closed IGNITE-3447.
-------------------------------

Duplicate of https://issues.apache.org/jira/browse/IGNITE-3263

> put/get value by AffinityKey
> ----------------------------
>
>                 Key: IGNITE-3447
>                 URL: https://issues.apache.org/jira/browse/IGNITE-3447
>             Project: Ignite
>          Issue Type: Bug
>          Components: cache
>    Affects Versions: 1.6
>         Environment: jdk1.8 ,mac OS EI
>            Reporter: Ranger Tsao
>            Assignee: Saikat Maitra
>
> code is :
> IgniteCache<Object, Address> ac = ignite.getOrCreateCache("address");
> AffinityKey<String> ak1 = new AffinityKey<>("mok");
> AffinityKey<String> ak2 = new AffinityKey<>("mok", "mok");
> ac.put(ak1, new Address("west"));
> ac.put(ak2, new Address("east"));
> when ac.put(ak1, new Address("west"));
> throw exception:
> Exception in thread "main" java.lang.NullPointerException
> 	at org.apache.ignite.cache.affinity.rendezvous.RendezvousAffinityFunction.partition(RendezvousAffinityFunction.java:428)
> 	at org.apache.ignite.internal.processors.cache.GridCacheAffinityManager.partition(GridCacheAffinityManager.java:206)
> 	at org.apache.ignite.internal.processors.cache.GridCacheAffinityManager.primary(GridCacheAffinityManager.java:278)
> 	at org.apache.ignite.internal.processors.cache.distributed.dht.atomic.GridNearAtomicSingleUpdateFuture.mapSingleUpdate(GridNearAtomicSingleUpdateFuture.java:601)
> 	at org.apache.ignite.internal.processors.cache.distributed.dht.atomic.GridNearAtomicSingleUpdateFuture.map(GridNearAtomicSingleUpdateFuture.java:517)
> 	at org.apache.ignite.internal.processors.cache.distributed.dht.atomic.GridNearAtomicSingleUpdateFuture.mapOnTopology(GridNearAtomicSingleUpdateFuture.java:433)
> 	at org.apache.ignite.internal.processors.cache.distributed.dht.atomic.GridNearAtomicAbstractUpdateFuture.map(GridNearAtomicAbstractUpdateFuture.java:202)
> 	at org.apache.ignite.internal.processors.cache.distributed.dht.atomic.GridDhtAtomicCache$22.apply(GridDhtAtomicCache.java:1007)
> 	at org.apache.ignite.internal.processors.cache.distributed.dht.atomic.GridDhtAtomicCache$22.apply(GridDhtAtomicCache.java:1005)
> 	at org.apache.ignite.internal.processors.cache.distributed.dht.atomic.GridDhtAtomicCache.asyncOp(GridDhtAtomicCache.java:703)
> 	at org.apache.ignite.internal.processors.cache.distributed.dht.atomic.GridDhtAtomicCache.updateAsync0(GridDhtAtomicCache.java:1005)
> 	at org.apache.ignite.internal.processors.cache.distributed.dht.atomic.GridDhtAtomicCache.putAsync0(GridDhtAtomicCache.java:475)
> 	at org.apache.ignite.internal.processors.cache.GridCacheAdapter.putAsync(GridCacheAdapter.java:2506)
> 	at org.apache.ignite.internal.processors.cache.distributed.dht.atomic.GridDhtAtomicCache.put(GridDhtAtomicCache.java:452)
> 	at org.apache.ignite.internal.processors.cache.GridCacheAdapter.put(GridCacheAdapter.java:2180)
> 	at org.apache.ignite.internal.processors.cache.IgniteCacheProxy.put(IgniteCacheProxy.java:1165)



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)