Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CAMEL-18582: Remove SocketTimeoutException from non retryable classes #8497

Merged
merged 1 commit into from Oct 10, 2022

Conversation

essobedo
Copy link
Contributor

@essobedo essobedo commented Oct 8, 2022

Related to https://issues.apache.org/jira/browse/CAMEL-18582

Motivation

With the latest fix, we now get errors of type SocketTimeoutException: Read timed out indicating that the runner loses regularly the connection with maven central for some period of time but as it can recover it, to workaround it, we need to make sure that it can retry when it faces this kind of error.

Modifications:

  • Use default as retry handler instead of standard to be able to change the non-retryable classes
  • By default, SocketTimeoutException as a subclass of InterruptedIOException is part of the non-retryable classes which is the reason why no retries are made, so we need to redefine the non-retryable classes without InterruptedIOException to make sure that it will retry in case of Read timed out

@github-actions
Copy link
Contributor

github-actions bot commented Oct 8, 2022

🚫 There are (likely) no components to be tested in this PR

3 similar comments
@github-actions
Copy link
Contributor

github-actions bot commented Oct 8, 2022

🚫 There are (likely) no components to be tested in this PR

@github-actions
Copy link
Contributor

github-actions bot commented Oct 8, 2022

🚫 There are (likely) no components to be tested in this PR

@github-actions
Copy link
Contributor

github-actions bot commented Oct 8, 2022

🚫 There are (likely) no components to be tested in this PR

@github-actions
Copy link
Contributor

github-actions bot commented Oct 8, 2022

🚫 There are (likely) no components to be tested in this PR

3 similar comments
@github-actions
Copy link
Contributor

github-actions bot commented Oct 8, 2022

🚫 There are (likely) no components to be tested in this PR

@github-actions
Copy link
Contributor

🚫 There are (likely) no components to be tested in this PR

@github-actions
Copy link
Contributor

🚫 There are (likely) no components to be tested in this PR

@essobedo
Copy link
Contributor Author

During the last build, we can see in the log file that several read timed outs occurred but the build still passed, so it should be good now

@essobedo essobedo merged commit 29522fc into main Oct 10, 2022
@essobedo essobedo deleted the CAMEL-18582/set-non-retryable-classes branch October 10, 2022 10:38
geekrupam pushed a commit to geekrupam/camel that referenced this pull request Oct 10, 2022
…apache#8497)

## Motivation

With the latest fix, we now get errors of type `SocketTimeoutException: Read timed out` indicating that the runner loses regularly the connection with maven central for some period of time but as it can recover it, to workaround it, we need to make sure that it can retry when it faces this kind of error.

## Modifications:

* Use `default` as retry handler instead of `standard` to be able to change the non-retryable classes
* By default, `SocketTimeoutException` as a subclass of `InterruptedIOException` is part of the non-retryable classes which is the reason why no retries are made, so we need to redefine the non-retryable classes without `InterruptedIOException` to make sure that it will retry in case of `Read timed out`
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
3 participants