You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@knox.apache.org by "Attila Magyar (Jira)" <ji...@apache.org> on 2024/02/27 10:45:00 UTC
[jira] [Updated] (KNOX-2951) During discovery if cm is not reachable and throws SocketException then retry is not happening
[ https://issues.apache.org/jira/browse/KNOX-2951?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Attila Magyar updated KNOX-2951:
--------------------------------
Fix Version/s: 2.1.0
> 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
> Fix For: 2.1.0
>
> 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)