ignite-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Saikat Maitra (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (IGNITE-3447) put/get value by AffinityKey
Date Tue, 25 Oct 2016 16:16:58 GMT

    [ https://issues.apache.org/jira/browse/IGNITE-3447?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15605735#comment-15605735
] 

Saikat Maitra commented on IGNITE-3447:
---------------------------------------

This defect has been fixed in this following PR.

https://github.com/apache/ignite/pull/926

This defect is 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)

Mime
View raw message