Fixed uninformative message in console about using deprecated active() - Fixes
@@ -2175,9 +2175,9 @@ public class IgniteKernal implements IgniteEx, IgniteMXBean, Externalizable {
log.info(str);
}
- if (!ctx.state().clusterState().active()) {
- U.quietAndInfo(log, ">>> Ignite cluster is not active (limited functionality available). " +
- "Use control.(sh|bat) script or IgniteCluster interface to activate.");
+ if (ctx.state().clusterState().state() == ClusterState.INACTIVE) {
+ U.quietAndInfo(log, ">>> Ignite cluster is in INACTIVE state (limited functionality available). " +
+ "Use control.(sh|bat) script or IgniteCluster.state(ClusterState.ACTIVE) to change the state.");
}
}
@@ -4508,7 +4508,7 @@ public class IgniteKernal implements IgniteEx, IgniteMXBean, Externalizable {
reg.register("longJVMPauseLastEvents", this::getLongJVMPauseLastEvents, Map.class,
LONG_JVM_PAUSE_LAST_EVENTS_DESC);
- reg.register("active", () -> ctx.state().clusterState().active()/*this::active*/, Boolean.class,
+ reg.register("active", () -> ctx.state().clusterState().state().active(), Boolean.class,
ACTIVE_DESC);
reg.register("clusterState", this::clusterState, String.class, CLUSTER_STATE_DESC);
