mirror of
https://github.com/honeymoose/OpenSearch.git
synced 2025-02-17 10:25:15 +00:00
Log exception when join validation fails
Today when join validation fails, we log a warning but do not log the exception that led to the join validation failing. This commit modifies this so that we do log this exception.
This commit is contained in:
parent
ad5ce598db
commit
81c0b7bfa9
@ -832,7 +832,7 @@ public class ZenDiscovery extends AbstractLifecycleComponent<Discovery> implemen
|
||||
try {
|
||||
membership.sendValidateJoinRequestBlocking(node, state, joinTimeout);
|
||||
} catch (Throwable e) {
|
||||
logger.warn("failed to validate incoming join request from node [{}]", node);
|
||||
logger.warn("failed to validate incoming join request from node [{}]", e, node);
|
||||
callback.onFailure(new IllegalStateException("failure when sending a validation request to node", e));
|
||||
return;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user