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

Nicolas Filotto edited comment on CAMEL-18582 at 10/10/22 10:45 AM:
--------------------------------------------------------------------

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}}

The PR to remove SocketTimeoutException from non retryable classes 
[https://github.com/apache/camel/pull/8497]

 

During the last build, we can see [in the log 
file|https://github.com/apache/camel/actions/runs/3209749409/jobs/5261980216] 
that several `read timed out`s occurred but the build still passed, so it 
should be good now.

 
{code:java}
[camel-mapstruct] [INFO] I/O exception (java.net.SocketTimeoutException) caught 
when processing request to
{s}->https://repo.maven.apache.org:443: Read timed out
[camel-mapstruct] [INFO] Retrying request to {s}
->https://repo.maven.apache.org:443
[camel-mapstruct] [INFO] 
[camel-mapstruct] [INFO] — maven-enforcer-plugin:3.0.0:enforce 
(enforce-java-version) @ camel-mapstruct —
[camel-mapstruct] [INFO] 
[camel-mapstruct] [INFO] — maven-enforcer-plugin:3.0.0:enforce (enforce-maven) 
@ camel-mapstruct —
[camel-mapstruct] [INFO] 
[camel-mapstruct] [INFO] — camel-bundle-plugin:3.20.0-SNAPSHOT:cleanVersions 
(versions) @ camel-mapstruct —
[camel-mapstruct] [INFO] 
[camel-mapstruct] [INFO] — build-helper-maven-plugin:3.2.0:add-source (default) 
@ camel-mapstruct —
[camel-mapstruct] [INFO] Source directory: 
/home/runner/work/camel/camel/components/camel-mapstruct/src/generated/java 
added.
[camel-mapstruct] [INFO] 
[camel-mapstruct] [INFO] — build-helper-maven-plugin:3.2.0:add-resource 
(default) @ camel-mapstruct —
[camel-mapstruct] [INFO] 
[camel-mapstruct] [INFO] — maven-resources-plugin:3.2.0:resources 
(default-resources) @ camel-mapstruct —
[camel-mapstruct] [INFO] Using 'UTF-8' encoding to copy filtered resources.
[camel-mapstruct] [INFO] Using 'UTF-8' encoding to copy filtered properties 
files.
[camel-mapstruct] [INFO] skip non existing resourceDirectory 
/home/runner/work/camel/camel/components/camel-mapstruct/src/main/resources
[camel-mapstruct] [INFO] Copying 6 resources
[camel-mapstruct] [INFO] 
[camel-mapstruct] [INFO] — flatten-maven-plugin:1.2.5:flatten (default-cli) @ 
camel-mapstruct —
[camel-mapstruct] [INFO] Generating flattened POM of project 
org.apache.camel:camel-mapstruct:jar:3.20.0-SNAPSHOT...
[camel-mapstruct] [INFO] 
[camel-mapstruct] [INFO] — maven-compiler-plugin:3.8.1:compile 
(default-compile) @ camel-mapstruct —
[camel-mapstruct] [INFO] Changes detected - recompiling the module!
[camel-mapstruct] [INFO] Compiling 8 source files to 
/home/runner/work/camel/camel/components/camel-mapstruct/target/classes
[camel-mapstruct] [INFO] 
[camel-mapstruct] [INFO] — camel-package-maven-plugin:3.20.0-SNAPSHOT:generate 
(generate) @ camel-mapstruct —
[camel-mapstruct] [INFO] No previous run data found, generating files.
[camel-mapstruct] [INFO] Building index...
{code}
 


was (Author: JIRAUSER285918):
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}}

The PR to remove SocketTimeoutException from non retryable classes 
[https://github.com/apache/camel/pull/8497]

 

During the last build, we can see [in the log 
file|https://github.com/apache/camel/actions/runs/3209749409/jobs/5261980216] 
that several `read timed out`s occurred but the build still passed, so it 
should be good now

> Prevent build failures due to write lock issues
> -----------------------------------------------
>
>                 Key: CAMEL-18582
>                 URL: https://issues.apache.org/jira/browse/CAMEL-18582
>             Project: Camel
>          Issue Type: Task
>          Components: build system
>            Reporter: Nicolas Filotto
>            Assignee: Nicolas Filotto
>            Priority: Major
>
> The build regularly fails with an error of type:
>  
> {{2022-10-04T08:27:32.6309180Z [ERROR] Could not acquire write lock for 
> '/home/runner/.m2/repository/.locks/jakarta.activation~jakarta.activation-api~1.2.2.resolverlock'
>  2022-10-04T08:27:32.6313534Z [ERROR] Camel :: Management: Could not acquire 
> write lock for 
> '/home/runner/.m2/repository/.locks/jakarta.activation~jakarta.activation-api~1.2.2.resolverlock'}}
>  
> The goal of this task is to investigate the issue and find a way to fix it or 
> at least find a workaround.



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to