Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[near-cache] NPE in MapGetInvalidationMetaDataOperation #11147

Closed
Donnerbart opened this issue Aug 18, 2017 · 0 comments
Closed

[near-cache] NPE in MapGetInvalidationMetaDataOperation #11147

Donnerbart opened this issue Aug 18, 2017 · 0 comments

Comments

@Donnerbart
Copy link
Contributor

@Donnerbart Donnerbart commented Aug 18, 2017

I got into a Near Cache scenario, where the MapGetInvalidationMetaDataOperation creates a NPE.

java.util.concurrent.ExecutionException: java.lang.NullPointerException
	at com.hazelcast.spi.impl.operationservice.impl.InvocationFuture.resolveAndThrowIfException(InvocationFuture.java:90) ~[classes/:?]
	at com.hazelcast.spi.impl.AbstractInvocationFuture.get(AbstractInvocationFuture.java:183) ~[classes/:?]
	at com.hazelcast.map.impl.nearcache.invalidation.MemberMapMetaDataFetcher.extractAndPopulateResult(MemberMapMetaDataFetcher.java:54) ~[classes/:?]
	at com.hazelcast.internal.nearcache.impl.invalidation.MetaDataFetcher.init(MetaDataFetcher.java:55) ~[classes/:?]
	at com.hazelcast.internal.nearcache.impl.invalidation.RepairingTask.initRepairingHandler(RepairingTask.java:194) [classes/:?]
	at com.hazelcast.internal.nearcache.impl.invalidation.RepairingTask.access$000(RepairingTask.java:53) [classes/:?]
	at com.hazelcast.internal.nearcache.impl.invalidation.RepairingTask$1.run(RepairingTask.java:218) [classes/:?]
	at com.hazelcast.util.executor.CachedExecutorServiceDelegate$Worker.run(CachedExecutorServiceDelegate.java:228) [classes/:?]
	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149) [?:1.8.0_144]
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624) [?:1.8.0_144]
	at java.lang.Thread.run(Thread.java:748) [?:1.8.0_144]
	at com.hazelcast.util.executor.HazelcastManagedThread.executeRun(HazelcastManagedThread.java:64) [classes/:?]
	at com.hazelcast.util.executor.HazelcastManagedThread.run(HazelcastManagedThread.java:80) [classes/:?]
Caused by: java.lang.NullPointerException
	at com.hazelcast.map.impl.operation.MapGetInvalidationMetaDataOperation.getPartitionUuidList(MapGetInvalidationMetaDataOperation.java:152) ~[classes/:?]
	at com.hazelcast.map.impl.operation.MapGetInvalidationMetaDataOperation.run(MapGetInvalidationMetaDataOperation.java:70) ~[classes/:?]
	at com.hazelcast.spi.impl.operationservice.impl.OperationRunnerImpl.run(OperationRunnerImpl.java:194) ~[classes/:?]
	at com.hazelcast.spi.impl.operationservice.impl.OperationRunnerImpl.run(OperationRunnerImpl.java:409) ~[classes/:?]
	at com.hazelcast.spi.impl.operationexecutor.impl.OperationThread.process(OperationThread.java:115) ~[classes/:?]
	at com.hazelcast.spi.impl.operationexecutor.impl.OperationThread.run(OperationThread.java:100) ~[classes/:?]
	at ------ submitted from ------.(Unknown Source) ~[?:?]
	at com.hazelcast.spi.impl.operationservice.impl.InvocationFuture.resolve(InvocationFuture.java:120) ~[classes/:?]
	at com.hazelcast.spi.impl.operationservice.impl.InvocationFuture.resolveAndThrowIfException(InvocationFuture.java:77) ~[classes/:?]
	... 12 more

This happens when I start an additional node during its startup phase. I guess it just doesn't have partitions assigned yet. Another scenario will be a small partition count, e.g. 1 in a test scenario, where all partitions are assigned to already running members.

@Donnerbart Donnerbart added this to the 3.9 milestone Aug 18, 2017
@Donnerbart Donnerbart self-assigned this Aug 18, 2017
@Donnerbart Donnerbart assigned ahmetmircik and unassigned Donnerbart Aug 21, 2017
@mmedenjak mmedenjak changed the title NPE in MapGetInvalidationMetaDataOperation [near-cache] NPE in MapGetInvalidationMetaDataOperation Aug 21, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

3 participants
You can’t perform that action at this time.