Module org.elasticsearch.server
Class ClusterFormationFailureHelper
java.lang.Object
org.elasticsearch.cluster.coordination.ClusterFormationFailureHelper
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final recordThis record provides node state information that can be used to determine why cluster formation has failed. -
Field Summary
FieldsModifier and TypeFieldDescriptionThis time period controls how often warning log messages will be written if this node fails to join or form a cluster. -
Constructor Summary
ConstructorsConstructorDescriptionClusterFormationFailureHelper(Settings settings, Supplier<ClusterFormationFailureHelper.ClusterFormationState> clusterFormationStateSupplier, ThreadPool threadPool, Runnable logLastFailedJoinAttempt) Works with theJoinHelperto log the latest node-join attempt failure and cluster state debug information. -
Method Summary
-
Field Details
-
DISCOVERY_CLUSTER_FORMATION_WARNING_TIMEOUT_SETTING
This time period controls how often warning log messages will be written if this node fails to join or form a cluster.
-
-
Constructor Details
-
ClusterFormationFailureHelper
public ClusterFormationFailureHelper(Settings settings, Supplier<ClusterFormationFailureHelper.ClusterFormationState> clusterFormationStateSupplier, ThreadPool threadPool, Runnable logLastFailedJoinAttempt) Works with theJoinHelperto log the latest node-join attempt failure and cluster state debug information. Must callstart()to begin.- Parameters:
settings- provides the period in which to log cluster formation errors.clusterFormationStateSupplier- information about the current believed cluster state (SeeClusterFormationFailureHelper.ClusterFormationState)threadPool- the thread pool on which to run debug logginglogLastFailedJoinAttempt- invokes an instance of the JoinHelper to log the last encountered join failure (SeeJoinHelper.logLastFailedJoinAttempt())
-
-
Method Details
-
isRunning
public boolean isRunning() -
start
public void start()Schedules a warning debug message to be logged in 'clusterFormationWarningTimeout' time, and periodically thereafter, untilstop()has been called. -
stop
public void stop()
-