Details
-
Bug
-
Status: Closed
-
Minor
-
Resolution: Fixed
-
1.9.0, 1.9.1, 1.9.2, 1.10.0, 1.11.0, 1.12.0, 1.13.0, 1.13.1, 1.14.0
-
None
Description
In a managed environment were local host name DNS entries and the startup of Geode happen concurrently it is possible for Geode to fail name resolution in the local hostname caching. If it fails to resolve the local hostname when loading the caching utility class then any service dependent on this name will fail without chance for recovery.
[error 2020/09/30 19:50:21.644 UTC <main> tid=0x1] Jmx manager could not be started because java.net.UnknownHostException
org.apache.geode.management.ManagementException: java.net.UnknownHostException
at org.apache.geode.management.internal.ManagementAgent.startAgent(ManagementAgent.java:133)
at org.apache.geode.management.internal.SystemManagementService.startManager(SystemManagementService.java:432)
at org.apache.geode.management.internal.beans.ManagementAdapter.handleCacheCreation(ManagementAdapter.java:181)
at org.apache.geode.management.internal.beans.ManagementListener.handleEvent(ManagementListener.java:127)
at org.apache.geode.distributed.internal.InternalDistributedSystem.notifyResourceEventListeners(InternalDistributedSystem.java:2063)
at org.apache.geode.distributed.internal.InternalDistributedSystem.handleResourceEvent(InternalDistributedSystem.java:606)
at org.apache.geode.internal.cache.GemFireCacheImpl.initialize(GemFireCacheImpl.java:1239)
at org.apache.geode.internal.cache.InternalCacheBuilder.create(InternalCacheBuilder.java:219)
at org.apache.geode.internal.cache.InternalCacheBuilder.create(InternalCacheBuilder.java:171)
at org.apache.geode.cache.CacheFactory.create(CacheFactory.java:142)
at org.apache.geode.distributed.internal.DefaultServerLauncherCacheProvider.createCache(DefaultServerLauncherCacheProvider.java:52)
at org.apache.geode.distributed.ServerLauncher.createCache(ServerLauncher.java:887)
at org.apache.geode.distributed.ServerLauncher.start(ServerLauncher.java:803)
at org.apache.geode.distributed.ServerLauncher.run(ServerLauncher.java:732)
at org.apache.geode.distributed.ServerLauncher.main(ServerLauncher.java:251)
Caused by: java.net.UnknownHostException
at org.apache.geode.internal.net.SocketCreator.getLocalHost(SocketCreator.java:285)
at org.apache.geode.management.internal.ManagementAgent.configureAndStart(ManagementAgent.java:310)
at org.apache.geode.management.internal.ManagementAgent.startAgent(ManagementAgent.java:131)
... 14 more
[error 2020/09/30 19:50:21.724 UTC <main> tid=0x1] org.apache.geode.management.ManagementException: java.net.UnknownHostException
Exception in thread "main" org.apache.geode.management.ManagementException: java.net.UnknownHostException
at org.apache.geode.management.internal.ManagementAgent.startAgent(ManagementAgent.java:133)
at org.apache.geode.management.internal.SystemManagementService.startManager(SystemManagementService.java:432)
at org.apache.geode.management.internal.beans.ManagementAdapter.handleCacheCreation(ManagementAdapter.java:181)
at org.apache.geode.management.internal.beans.ManagementListener.handleEvent(ManagementListener.java:127)
at org.apache.geode.distributed.internal.InternalDistributedSystem.notifyResourceEventListeners(InternalDistributedSystem.java:2063)
at org.apache.geode.distributed.internal.InternalDistributedSystem.handleResourceEvent(InternalDistributedSystem.java:606)
at org.apache.geode.internal.cache.GemFireCacheImpl.initialize(GemFireCacheImpl.java:1239)
at org.apache.geode.internal.cache.InternalCacheBuilder.create(InternalCacheBuilder.java:219)
at org.apache.geode.internal.cache.InternalCacheBuilder.create(InternalCacheBuilder.java:171)
at org.apache.geode.cache.CacheFactory.create(CacheFactory.java:142)
at org.apache.geode.distributed.internal.DefaultServerLauncherCacheProvider.createCache(DefaultServerLauncherCacheProvider.java:52)
at org.apache.geode.distributed.ServerLauncher.createCache(ServerLauncher.java:887)
at org.apache.geode.distributed.ServerLauncher.start(ServerLauncher.java:803)
at org.apache.geode.distributed.ServerLauncher.run(ServerLauncher.java:732)
at org.apache.geode.distributed.ServerLauncher.main(ServerLauncher.java:251)
Caused by: java.net.UnknownHostException
at org.apache.geode.internal.net.SocketCreator.getLocalHost(SocketCreator.java:285)
at org.apache.geode.management.internal.ManagementAgent.configureAndStart(ManagementAgent.java:310)
at org.apache.geode.management.internal.ManagementAgent.startAgent(ManagementAgent.java:131)
... 14 more