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

ASF GitHub Bot logged work on KNOX-2951:
----------------------------------------

                Author: ASF GitHub Bot
            Created on: 21/Aug/23 14:11
            Start Date: 21/Aug/23 14:11
    Worklog Time Spent: 10m 
      Work Description: zeroflag opened a new pull request, #788:
URL: https://github.com/apache/knox/pull/788

   ## What changes were proposed in this pull request?
   
   Service discovery was not retried after a SocketTimeoutException.
   
   ## How was this patch tested?
   
   Unittest.




Issue Time Tracking
-------------------

            Worklog Id:     (was: 877290)
    Remaining Estimate: 0h
            Time Spent: 10m

>  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