You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@geode.apache.org by "Jinmei Liao (JIRA)" <ji...@apache.org> on 2017/07/18 17:26:01 UTC

[jira] [Created] (GEODE-3237) Loading cluster configuration from a dir that does not have complete CC will throw NPE

Jinmei Liao created GEODE-3237:
----------------------------------

             Summary: Loading cluster configuration from a dir that does not have complete CC will throw NPE
                 Key: GEODE-3237
                 URL: https://issues.apache.org/jira/browse/GEODE-3237
             Project: Geode
          Issue Type: Bug
            Reporter: Jinmei Liao


We should handle the error more gracefully and informatively. Currently if user did the following:

gfsh> start locator --name=locator
gfsh> shutdown --include-lcoator=true
gfsh> start locator --name=locator --load-cluster-configuration-from-dir=true

the console message says "Cluster configuration service has been started, but its not running yet",
 and there is an NPE in the log:
[error 2017/07/18 10:22:38.357 PDT locator <Pooled Message Processor 1> tid=0x41] null
java.lang.NullPointerException
	at org.apache.geode.distributed.internal.ClusterConfigurationService.loadSharedConfigurationFromDisk(ClusterConfigurationService.java:618)
	at org.apache.geode.distributed.internal.ClusterConfigurationService.initSharedConfiguration(ClusterConfigurationService.java:441)
	at org.apache.geode.distributed.internal.InternalLocator$SharedConfigurationRunnable.run(InternalLocator.java:613)
	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
	at org.apache.geode.distributed.internal.DistributionManager.runUntilShutdown(DistributionManager.java:665)
	at org.apache.geode.distributed.internal.DistributionManager$4$1.run(DistributionManager.java:922)
	at java.lang.Thread.run(Thread.java:745)

the message should be saying: the CC can't be started, because the directory did not contain valid CC information.



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)