[ 
https://issues.apache.org/jira/browse/KNOX-2951?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Attila Magyar updated KNOX-2951:
--------------------------------
    Resolution: Fixed
        Status: Resolved  (was: Patch Available)

>  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
>            Priority: Major
>          Time Spent: 10m
>  Remaining Estimate: 0h
>
> {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)

Reply via email to