Stopping a locator in GemFire—particularly one acting as the cluster coordinator—can lead to runtime warnings like below and cluster instability if not handle
This article describes the reason behind this exception, the role of the coordinator in GemFire clusters, and the best practices for shutting down cluster components gracefully to maintain stability and avoid communication failures.
This warning appears when an operation attempts to communicate with a locator whose RMI services are no longer available. Specifically:
The warning typically occurs when a locator acting as the coordinator is stopped.
Other members in the cluster, expecting the coordinator to still be available, try to communicate with it via RMI, resulting in a NoSuchObjectException.
If only one locator is present and it is shut down, the cluster loses coordination, leading to various exceptions and failures in cluster management.
By contrast, if the stopped locator is not the coordinator, the cluster can continue functioning using other active locators, and this warning does not appear.
To prevent such issues and ensure cluster stability, it is essential to follow graceful shutdown procedures using the tools provided by GemFire, specifically gfsh (GemFire Shell).
shutdown [--time-out=value] [--include-locators=value]
Loss of RMI services
Inability to run gfsh commands
Risk of server disconnection or data unavailability