Attila Magyar created KNOX-2951:
-----------------------------------
Summary: During discovery if cm is not reachable and throws
SocketException then retry is not happening
Key: KNOX-2951
URL: https://issues.apache.org/jira/browse/KNOX-2951
Project: Apache Knox
Issue Type: Bug
Reporter: Attila Magyar
Assignee: Attila Magyar
{code}
private boolean shouldRetryServiceDiscovery(ApiException e) {
if (maxRetryAttempts > 0 && maxRetryAttempts >
retryAttempts.getAndIncrement()) {
final Throwable cause = e.getCause();
if (cause != null) {
if (ConnectException.class.isAssignableFrom(cause.getClass())) {
return true;
}
}
}
return false;
}
{code}
--
This message was sent by Atlassian Jira
(v8.20.10#820010)