You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by nf...@apache.org on 2022/10/10 10:38:05 UTC

[camel] branch main updated: CAMEL-18582: Remove SocketTimeoutException from non retryable classes (#8497)

This is an automated email from the ASF dual-hosted git repository.

nfilotto pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/camel.git


The following commit(s) were added to refs/heads/main by this push:
     new 29522fcc170 CAMEL-18582: Remove SocketTimeoutException from non retryable classes (#8497)
29522fcc170 is described below

commit 29522fcc170f7dbc9cea0a358a39c47f0784211f
Author: Nicolas Filotto <es...@users.noreply.github.com>
AuthorDate: Mon Oct 10 12:37:57 2022 +0200

    CAMEL-18582: Remove SocketTimeoutException from non retryable classes (#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`
---
 .mvn/jvm.config | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/.mvn/jvm.config b/.mvn/jvm.config
index 55b240284c2..600d595d45b 100644
--- a/.mvn/jvm.config
+++ b/.mvn/jvm.config
@@ -1 +1 @@
--Xmx3584m -Djava.awt.headless=true -XX:+UseG1GC -XX:+UseStringDeduplication -Daether.syncContext.named.factory=rwlock-local -Daether.syncContext.named.time=900 -Dmaven.wagon.rto=300000
+-Xmx3584m -Djava.awt.headless=true -XX:+UseG1GC -XX:+UseStringDeduplication -Daether.syncContext.named.factory=rwlock-local -Daether.syncContext.named.time=900 -Dmaven.wagon.rto=300000 -Dmaven.wagon.http.retryHandler.class=default -Dmaven.wagon.http.retryHandler.nonRetryableClasses=java.net.UnknownHostException,java.net.ConnectException,javax.net.ssl.SSLException