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

Vladimir Ershov commented on IGNITE-2539:
-----------------------------------------

Wrote test: gathered problems:
{noformat}
[17:09:41,211][ERROR][test-runner-#166%rendezvous.RendezvousAffinityRebalancingSelfTest%][RendezvousAffinityRebalancingSelfTest32]
 Failed to pre-stop processor: GridProcessorAdapter []
java.lang.NullPointerException
        at 
org.apache.ignite.internal.processors.cache.GridCacheProcessor.onExchangeDone(GridCacheProcessor.java:1718)
        at 
org.apache.ignite.internal.processors.cache.distributed.dht.preloader.GridDhtPartitionsExchangeFuture.onDone(GridDhtPartitionsExchangeFuture.java:1113)
        at 
org.apache.ignite.internal.processors.cache.distributed.dht.preloader.GridDhtPartitionsExchangeFuture.onDone(GridDhtPartitionsExchangeFuture.java:87)
        at 
org.apache.ignite.internal.util.future.GridFutureAdapter.onDone(GridFutureAdapter.java:336)
        at 
org.apache.ignite.internal.processors.cache.GridCachePartitionExchangeManager.onKernalStop0(GridCachePartitionExchangeManager.java:443)
        at 
org.apache.ignite.internal.processors.cache.GridCacheSharedManagerAdapter.onKernalStop(GridCacheSharedManagerAdapter.java:113)
        at 
org.apache.ignite.internal.processors.cache.GridCacheProcessor.onKernalStop(GridCacheProcessor.java:883)
        at org.apache.ignite.internal.IgniteKernal.stop0(IgniteKernal.java:1814)
        at org.apache.ignite.internal.IgniteKernal.stop(IgniteKernal.java:1760)
        at 
org.apache.ignite.internal.IgnitionEx$IgniteNamedInstance.stop0(IgnitionEx.java:2206)
        at 
org.apache.ignite.internal.IgnitionEx$IgniteNamedInstance.stop(IgnitionEx.java:2169)
        at org.apache.ignite.internal.IgnitionEx.stop(IgnitionEx.java:321)
        at org.apache.ignite.Ignition.stop(Ignition.java:224)
        at 
org.apache.ignite.testframework.junits.GridAbstractTest.stopGrid(GridAbstractTest.java:821)
        at 
org.apache.ignite.testframework.junits.GridAbstractTest.stopGrid(GridAbstractTest.java:1082)
        at 
org.apache.ignite.cache.affinity.AbstractAffinityRebalancingTest.testCacheStopping(AbstractAffinityRebalancingTest.java:99)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
        at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
        at java.lang.reflect.Method.invoke(Method.java:497)
        at junit.framework.TestCase.runTest(TestCase.java:176)
        at 
org.apache.ignite.testframework.junits.GridAbstractTest.runTestInternal(GridAbstractTest.java:1723)
        at 
org.apache.ignite.testframework.junits.GridAbstractTest.access$000(GridAbstractTest.java:118)
        at 
org.apache.ignite.testframework.junits.GridAbstractTest$4.run(GridAbstractTest.java:1661)
        at java.lang.Thread.run(Thread.java:745)
{noformat}

{noformat}
[17:10:12,633][ERROR][exchange-worker-#4057%rendezvous.RendezvousAffinityRebalancingSelfTest45%][GridDhtPartitionsExchangeFuture]
 Failed to reinitialize local partitions (preloading will be stopped): 
GridDhtPartitionExchangeId [topVer=AffinityTopologyVersion [topVer=84, 
minorTopVer=15], nodeId=fbf3dcfd, evt=DISCOVERY_CUSTOM_EVT]
java.lang.NullPointerException
        at 
org.apache.ignite.internal.processors.cache.GridCacheSharedContext.partitionReleaseFuture(GridCacheSharedContext.java:502)
        at 
org.apache.ignite.internal.processors.cache.distributed.dht.preloader.GridDhtPartitionsExchangeFuture.init(GridDhtPartitionsExchangeFuture.java:767)
        at 
org.apache.ignite.internal.processors.cache.GridCachePartitionExchangeManager$ExchangeWorker.body(GridCachePartitionExchangeManager.java:1297)
        at 
org.apache.ignite.internal.util.worker.GridWorker.run(GridWorker.java:110)
        at java.lang.Thread.run(Thread.java:745)
{noformat}

{noformat}
[17:10:12,668][ERROR][exchange-worker-#4057%rendezvous.RendezvousAffinityRebalancingSelfTest45%][GridCachePartitionExchangeManager]
 Failed to wait for completion of partition map exchange (preloading will not 
start): GridDhtPartitionsExchangeFuture [dummy=false, forcePreload=false, 
reassign=false, discoEvt=DiscoveryCustomEvent 
[customMsg=DynamicCacheChangeBatch [reqs=[DynamicCacheChangeRequest 
[deploymentId=b27f777a251-d8780e92-c79f-434b-a55a-ad06448f3f03, 
startCfg=CacheConfiguration [name=cacheP190, storeConcurrentLoadAllThreshold=5, 
rebalancePoolSize=2, rebalanceTimeout=10000, evictPlc=null, evictSync=false, 
evictKeyBufSize=1024, evictSyncConcurrencyLvl=4, evictSyncTimeout=10000, 
evictFilter=null, evictMaxOverflowRatio=10.0, eagerTtl=true, dfltLockTimeout=0, 
startSize=1500000, nearCfg=null, writeSync=PRIMARY_SYNC, storeFactory=null, 
storeKeepBinary=false, loadPrevVal=false, 
aff=o.a.i.cache.affinity.rendezvous.RendezvousAffinityFunction@6f5a7d63, 
cacheMode=PARTITIONED, atomicityMode=ATOMIC, atomicWriteOrderMode=PRIMARY, 
backups=1, invalidate=false, tmLookupClsName=null, rebalanceMode=ASYNC, 
rebalanceOrder=0, rebalanceBatchSize=524288, rebalanceBatchesPrefetchCount=2, 
offHeapMaxMem=-1, swapEnabled=false, maxConcurrentAsyncOps=500, 
writeBehindEnabled=false, writeBehindFlushSize=10240, 
writeBehindFlushFreq=5000, writeBehindFlushThreadCnt=1, 
writeBehindBatchSize=512, memMode=ONHEAP_TIERED, 
affMapper=o.a.i.i.processors.cache.GridCacheDefaultAffinityKeyMapper@2a06c25c, 
rebalanceDelay=0, rebalanceThrottle=0, interceptor=null, 
longQryWarnTimeout=3000, readFromBackup=true, 
nodeFilter=o.a.i.configuration.CacheConfiguration$IgniteAllNodesPredicate@bdca2c,
 sqlSchema=null, sqlEscapeAll=false, sqlOnheapRowCacheSize=10240, 
snapshotableIdx=false, cpOnRead=true, topValidator=null], cacheType=USER, 
initiatingNodeId=fbf3dcfd-c947-4798-8ac3-617d91b00001, nearCacheCfg=null, 
clientStartOnly=false, stop=false, close=false, failIfExists=false, 
template=false, exchangeNeeded=true, cacheFutTopVer=null, 
cacheName=cacheP190]], clientNodes=null, 
id=c27f777a251-d8780e92-c79f-434b-a55a-ad06448f3f03, clientReconnect=false], 
affTopVer=AffinityTopologyVersion [topVer=84, minorTopVer=15], 
super=DiscoveryEvent [evtNode=TcpDiscoveryNode 
[id=fbf3dcfd-c947-4798-8ac3-617d91b00001, addrs=[127.0.0.1], 
sockAddrs=[/127.0.0.1:47501], discPort=47501, order=2, intOrder=2, 
lastExchangeTime=1454508610226, loc=false, ver=1.6.0#19700101-sha1:00000000, 
isClient=false], topVer=84, nodeId8=ff21274f, msg=null, 
type=DISCOVERY_CUSTOM_EVT, tstamp=1454508612614]], 
rcvdIds=GridConcurrentHashSet [elements=[]], 
rmtIds=[dd97e400-3d81-45bf-8f36-62a56c100000, 
4da50e03-41cc-4ab2-92f1-07a00bb00002, fbf3dcfd-c947-4798-8ac3-617d91b00001], 
exchId=GridDhtPartitionExchangeId [topVer=AffinityTopologyVersion [topVer=84, 
minorTopVer=15], nodeId=fbf3dcfd, evt=DISCOVERY_CUSTOM_EVT], init=true, 
ready=false, replied=false, added=true, initFut=GridFutureAdapter [resFlag=2, 
res=false, startTime=1454508612614, endTime=1454508612634, 
ignoreInterrupts=false, state=DONE], topSnapshot=null, lastVer=null, 
partReleaseFut=null, skipPreload=false, clientOnlyExchange=false, 
initTs=1454508612614, oldest=dd97e400-3d81-45bf-8f36-62a56c100000, 
oldestOrder=1, evtLatch=0, remaining=[dd97e400-3d81-45bf-8f36-62a56c100000, 
4da50e03-41cc-4ab2-92f1-07a00bb00002, fbf3dcfd-c947-4798-8ac3-617d91b00001], 
super=GridFutureAdapter [resFlag=1, res=java.lang.NullPointerException, 
startTime=1454508612614, endTime=1454508612634, ignoreInterrupts=false, 
state=DONE]]
class org.apache.ignite.IgniteCheckedException: null
        at 
org.apache.ignite.internal.util.IgniteUtils.cast(IgniteUtils.java:7019)
        at 
org.apache.ignite.internal.util.future.GridFutureAdapter.get0(GridFutureAdapter.java:168)
        at 
org.apache.ignite.internal.util.future.GridFutureAdapter.get(GridFutureAdapter.java:117)
        at 
org.apache.ignite.internal.processors.cache.GridCachePartitionExchangeManager$ExchangeWorker.body(GridCachePartitionExchangeManager.java:1299)
        at 
org.apache.ignite.internal.util.worker.GridWorker.run(GridWorker.java:110)
        at java.lang.Thread.run(Thread.java:745)
Caused by: java.lang.NullPointerException
        at 
org.apache.ignite.internal.processors.cache.GridCacheSharedContext.partitionReleaseFuture(GridCacheSharedContext.java:502)
        at 
org.apache.ignite.internal.processors.cache.distributed.dht.preloader.GridDhtPartitionsExchangeFuture.init(GridDhtPartitionsExchangeFuture.java:767)
        at 
org.apache.ignite.internal.processors.cache.GridCachePartitionExchangeManager$ExchangeWorker.body(GridCachePartitionExchangeManager.java:1297)
        ... 2 more
{noformat}

> NPE at RendezvousAffinityFunction
> ---------------------------------
>
>                 Key: IGNITE-2539
>                 URL: https://issues.apache.org/jira/browse/IGNITE-2539
>             Project: Ignite
>          Issue Type: Bug
>          Components: cache
>    Affects Versions: 1.5.0.final
>            Reporter: Vladimir Ershov
>            Assignee: Vladimir Ershov
>            Priority: Critical
>   Original Estimate: 4h
>  Remaining Estimate: 4h
>
> RendezvousAffinityFunction#assignPartition throws NPE, probably due to 
> simultaneous topology change and  cache stop. We should write a test and fix 
> this.



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

Reply via email to