[ https://issues.apache.org/jira/browse/GEODE-7173?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16925974#comment-16925974 ]
Kirk Lund edited comment on GEODE-7173 at 9/9/19 6:18 PM: ---------------------------------------------------------- The cause appears to be a race condition involving the volatile field gfManagerAgent which gets nulled out after the null-check in getDistributionManager(): {noformat} public DM getDistributionManager() { if (this.gfManagerAgent == null) { return null; } return this.gfManagerAgent.getDM(); } {noformat} was (Author: klund): The cause appears to be a race condition involving the volatile field gfManagerAgent which gets nulls out after the null-check in getDistributionManager(): {noformat} public DM getDistributionManager() { if (this.gfManagerAgent == null) { return null; } return this.gfManagerAgent.getDM(); } {noformat} > PersistentPartitionedRegionDistributedTest.missingDiskStoreCanBeRevokedBeforeStartingServer > fails intermittently with NullPointerException > ------------------------------------------------------------------------------------------------------------------------------------------ > > Key: GEODE-7173 > URL: https://issues.apache.org/jira/browse/GEODE-7173 > Project: Geode > Issue Type: Wish > Components: management > Reporter: Kirk Lund > Assignee: Kirk Lund > Priority: Major > > {noformat} > [fatal 2019/09/06 22:54:40.944 GMT <Pooled Message Processor 2> tid=1527] > Uncaught exception processing Alert "Error processing request class > org.apache.geode.internal.admin.remote.PrepareRevokePersistentIDRequest" > level ERROR > java.lang.NullPointerException > at > org.apache.geode.admin.internal.AdminDistributedSystemImpl.getDistributionManager(AdminDistributedSystemImpl.java:973) > at > org.apache.geode.admin.internal.AdminDistributedSystemImpl.checkCancellation(AdminDistributedSystemImpl.java:690) > at > org.apache.geode.admin.internal.AdminDistributedSystemImpl.findSystemMember(AdminDistributedSystemImpl.java:1500) > at > org.apache.geode.admin.internal.AdminDistributedSystemImpl$AlertImpl.<init>(AdminDistributedSystemImpl.java:2081) > at > org.apache.geode.admin.internal.AdminDistributedSystemImpl.alert(AdminDistributedSystemImpl.java:1253) > at > org.apache.geode.internal.admin.remote.RemoteGfManagerAgent.callAlertListener(RemoteGfManagerAgent.java:775) > at > org.apache.geode.internal.admin.remote.AlertListenerMessage.process(AlertListenerMessage.java:104) > at > org.apache.geode.distributed.internal.DistributionMessage.scheduleAction(DistributionMessage.java:370) > at > org.apache.geode.distributed.internal.DistributionMessage$1.run(DistributionMessage.java:434) > at > java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128) > at > java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628) > at > org.apache.geode.distributed.internal.ClusterDistributionManager.runUntilShutdown(ClusterDistributionManager.java:961) > at > org.apache.geode.distributed.internal.ClusterDistributionManager.doProcessingThread(ClusterDistributionManager.java:827) > at > org.apache.geode.internal.logging.LoggingThreadFactory.lambda$newThread$0(LoggingThreadFactory.java:121) > at java.base/java.lang.Thread.run(Thread.java:834) > {noformat} -- This message was sent by Atlassian Jira (v8.3.2#803003)