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/06 14:00:11 UTC

[camel] branch main updated: CAMEL-18582: Update timeouts to prevent write lock issues (#8488)

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 ca259793ca3 CAMEL-18582: Update timeouts to prevent write lock issues (#8488)
ca259793ca3 is described below

commit ca259793ca3472510445ec2218748e7b674edd6c
Author: Nicolas Filotto <es...@users.noreply.github.com>
AuthorDate: Thu Oct 6 16:00:04 2022 +0200

    CAMEL-18582: Update timeouts to prevent write lock issues (#8488)
    
    ## Motivation
    
    After a deeper analysis, it appears that the build failures are indirectly due to errors of type `I/O exception (java.net.SocketException) caught when processing request to {s}->https://repo.maven.apache.org:443: Connection timed out (Read failed)`  which has for consequences to keep the lock on the artifacts for more than 15 minutes such that the build ends up with a lock issue since the lock timeout is only of 5 minutes.
    
    ## Modifications:
    
    * Increase the lock timeout to 15 minutes
    * Set the read timeout to 5 minutes
    * Remove the step that generates a thread dump since it is not due to a deadlock
---
 .github/workflows/main-checkstyle-build.yml | 4 ----
 .github/workflows/main-push-build.yml       | 4 ----
 .github/workflows/pr-build.yml              | 8 --------
 .mvn/jvm.config                             | 2 +-
 4 files changed, 1 insertion(+), 17 deletions(-)

diff --git a/.github/workflows/main-checkstyle-build.yml b/.github/workflows/main-checkstyle-build.yml
index 42fa8724e74..47ea9b4803e 100644
--- a/.github/workflows/main-checkstyle-build.yml
+++ b/.github/workflows/main-checkstyle-build.yml
@@ -48,10 +48,6 @@ jobs:
           cache: 'maven'
       - name: mvn sourcecheck
         run: ${{ steps.install-mvnd.outputs.mvnd-dir }}/mvnd -l checkstyle.log -Dmvnd.threads=2 -V -Dhttp.keepAlive=false -Dmaven.wagon.http.pool=false -Dmaven.wagon.httpconnectionManager.ttlSeconds=120 --no-transfer-progress -Psourcecheck -Dcheckstyle.failOnViolation=true -e -DskipTests checkstyle:checkstyle verify
-      - name: Generate a thread dump in case of a lock issue
-        if: failure()
-        run: cat checkstyle.log | grep "Could not acquire write lock for '.*.resolverlock'" > /dev/null && jstack $(jcmd | grep MavenDaemon | awk '{print $1;}') >> checkstyle.log
-        shell: bash
       - name: archive logs
         uses: actions/upload-artifact@v3
         if: always()
diff --git a/.github/workflows/main-push-build.yml b/.github/workflows/main-push-build.yml
index 99487e1eb8f..59e06b5b7ad 100644
--- a/.github/workflows/main-push-build.yml
+++ b/.github/workflows/main-push-build.yml
@@ -55,10 +55,6 @@ jobs:
           cache: 'maven'
       - name: mvn formatter and build
         run: ${{ steps.install-mvnd.outputs.mvnd-dir }}/mvnd -l build.log -Dmvnd.threads=2 -V -Dhttp.keepAlive=false -Dmaven.wagon.http.pool=false -Dmaven.wagon.httpconnectionManager.ttlSeconds=120 --no-transfer-progress -e -Pformat,fastinstall -DskipTests verify
-      - name: Generate a thread dump in case of a lock issue
-        if: failure()
-        run: cat build.log | grep "Could not acquire write lock for '.*.resolverlock'" > /dev/null && jstack $(jcmd | grep MavenDaemon | awk '{print $1;}') >> build.log
-        shell: bash
       - name: archive logs
         uses: actions/upload-artifact@v3
         if: always()
diff --git a/.github/workflows/pr-build.yml b/.github/workflows/pr-build.yml
index 86dfd4d6732..d595a0e3b72 100644
--- a/.github/workflows/pr-build.yml
+++ b/.github/workflows/pr-build.yml
@@ -48,10 +48,6 @@ jobs:
         cache: 'maven'
     - name: mvn checkstyle
       run: ${{ steps.install-mvnd.outputs.mvnd-dir }}/mvnd -l checkstyle.log -Dmvnd.threads=2 -V -Dhttp.keepAlive=false -Dmaven.wagon.http.pool=false -Dmaven.wagon.httpconnectionManager.ttlSeconds=120 --no-transfer-progress  -Dcheckstyle.failOnViolation=true -e checkstyle:checkstyle
-    - name: Generate a thread dump in case of a lock issue
-      if: failure()
-      run: cat checkstyle.log | grep "Could not acquire write lock for '.*.resolverlock'" > /dev/null && jstack $(jcmd | grep MavenDaemon | awk '{print $1;}') >> checkstyle.log
-      shell: bash
     - name: archive logs
       uses: actions/upload-artifact@v3
       if: always()
@@ -81,10 +77,6 @@ jobs:
           cache: 'maven'
       - name: maven build
         run: ${{ steps.install-mvnd.outputs.mvnd-dir }}/mvnd -l build.log -Dmvnd.threads=2 -V -Dhttp.keepAlive=false -Dmaven.wagon.http.pool=false -Dmaven.wagon.httpconnectionManager.ttlSeconds=120 --no-transfer-progress -e -Pfastinstall -DskipTests install
-      - name: Generate a thread dump in case of a lock issue
-        if: failure()
-        run: cat build.log | grep "Could not acquire write lock for '.*.resolverlock'" > /dev/null && jstack $(jcmd | grep MavenDaemon | awk '{print $1;}') >> build.log
-        shell: bash
       - name: archive logs
         uses: actions/upload-artifact@v3
         if: always()
diff --git a/.mvn/jvm.config b/.mvn/jvm.config
index 2adf7ee033c..55b240284c2 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=300
+-Xmx3584m -Djava.awt.headless=true -XX:+UseG1GC -XX:+UseStringDeduplication -Daether.syncContext.named.factory=rwlock-local -Daether.syncContext.named.time=900 -Dmaven.wagon.rto=300000