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

Donnerbart opened this issue Aug 18, 2017 · 0 comments

[near-cache] NPE in MapGetInvalidationMetaDataOperation #11147

Donnerbart opened this issue Aug 18, 2017 · 0 comments


Copy link

@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( ~[classes/:?]
	at com.hazelcast.spi.impl.AbstractInvocationFuture.get( ~[classes/:?]
	at ~[classes/:?]
	at com.hazelcast.internal.nearcache.impl.invalidation.MetaDataFetcher.init( ~[classes/:?]
	at com.hazelcast.internal.nearcache.impl.invalidation.RepairingTask.initRepairingHandler( [classes/:?]
	at com.hazelcast.internal.nearcache.impl.invalidation.RepairingTask.access$000( [classes/:?]
	at com.hazelcast.internal.nearcache.impl.invalidation.RepairingTask$ [classes/:?]
	at com.hazelcast.util.executor.CachedExecutorServiceDelegate$ [classes/:?]
	at java.util.concurrent.ThreadPoolExecutor.runWorker( [?:1.8.0_144]
	at java.util.concurrent.ThreadPoolExecutor$ [?:1.8.0_144]
	at [?:1.8.0_144]
	at com.hazelcast.util.executor.HazelcastManagedThread.executeRun( [classes/:?]
	at [classes/:?]
Caused by: java.lang.NullPointerException
	at ~[classes/:?]
	at ~[classes/:?]
	at ~[classes/:?]
	at ~[classes/:?]
	at com.hazelcast.spi.impl.operationexecutor.impl.OperationThread.process( ~[classes/:?]
	at ~[classes/:?]
	at ------ submitted from ------.(Unknown Source) ~[?:?]
	at com.hazelcast.spi.impl.operationservice.impl.InvocationFuture.resolve( ~[classes/:?]
	at com.hazelcast.spi.impl.operationservice.impl.InvocationFuture.resolveAndThrowIfException( ~[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
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.