[ 
https://issues.apache.org/jira/browse/KNOX-2951?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17762031#comment-17762031
 ] 

ASF subversion and git services commented on KNOX-2951:
-------------------------------------------------------

Commit b9b7329339a9c5376c51cf87abf3bdf2c9f05198 in knox's branch 
refs/heads/master from Attila Magyar
[ https://gitbox.apache.org/repos/asf?p=knox.git;h=b9b732933 ]

KNOX-2951 - During discovery if cm is not reachable and throws SocketException 
then retry is not happening (#788)



>  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