Add log message for auto-follower timeout

When an auto-follower coordinator times out waiting for the remote
cluster state, we do not log any indication of this. While this is
expected behavior in quiet deployments, it is still useful to see this
information for tracing the behavior of the auto-follow
coordinator. This commit adds a trace log message indicating that the
timeout.
This commit is contained in:
Jason Tedor 2019-03-16 10:36:02 -04:00
parent 86d1d03c37
commit 0824eceacf
No known key found for this signature in database
GPG Key ID: FA89F05560F16BC5

View File

@ -366,6 +366,7 @@ public class AutoFollowCoordinator implements ClusterStateListener {
if (remoteClusterStateResponse != null) {
assert remoteError == null;
if (remoteClusterStateResponse.isWaitForTimedOut()) {
LOGGER.trace("auto-follow coordinator timed out getting remote cluster state from [{}]", remoteCluster);
start();
return;
}