Uploaded image for project: 'Red Hat Fuse'
  1. Red Hat Fuse
  2. ENTESB-5478

Downloading of artifacts is frozen due to some file locks in local repository

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Critical
    • Resolution: Done
    • Affects Version/s: jboss-fuse-6.2.1, jboss-fuse-6.3
    • Fix Version/s: jboss-fuse-6.3
    • Component/s: Fabric8 v1
    • Labels:
    • Sprint:
      Sprint 5 - towards ER2
    • Steps to Reproduce:
      Hide

      Prerequisites:
      jboss-fuse-6.3.0.redhat-067

      cd ~/.m2/repository; rm -rf org/jboss/integration org/drools org/jbpm; cd -
      

      Steps:

      fabric:create --wait-for-provisioning --new-user admin --new-user-password admin
      fabric:profile-create --parent feature-camel feature-ip
      
      fabric:profile-edit --pid io.fabric8.agent/org.ops4j.pax.url.mvn.repositories=http://fusewin.tpb.lab.eng.brq.redhat.com:8081/nexus/content/repositories/ea@id=fusewin default
      fabric:profile-edit --append --pid io.fabric8.agent/org.ops4j.pax.url.mvn.repositories=http://download.eng.brq.redhat.com/brewroot/repos/jb-bxms-6.3-build/latest/maven@id=ip default
      
      fabric:profile-edit --repository mvn:org.drools/drools-karaf-features/6.4.0.Final-redhat-3/xml/features feature-ip
      fabric:profile-edit --repository mvn:org.jboss.integration.fuse.quickstarts/karaf-features/1.4.0.redhat-630011/xml/features feature-ip
      fabric:profile-edit --repository mvn:org.switchyard.karaf/switchyard/2.1.0.redhat-630067/xml/core-features feature-ip
      
      fabric:profile-edit --feature fuse-bxms-switchyard-bpm feature-ip
      fabric:profile-edit --feature fuse-bxms-switchyard-rules feature-ip
      
      fabric:container-create-child --profile feature-ip root child
      watch fabric:container-list
      

      Check locks:

      watch find ~/.m2/repository -name "*.part.lock"
      

      Downloading is stuck - dead lock

      Remove locks periodically:

      watch "find ~/.m2/repository/ -name *.lock | xargs rm"
      

      Downloading continues...

      Show
      Prerequisites: jboss-fuse-6.3.0.redhat-067 cd ~/.m2/repository; rm -rf org/jboss/integration org/drools org/jbpm; cd - Steps: fabric:create --wait- for -provisioning -- new -user admin -- new -user-password admin fabric:profile-create --parent feature-camel feature-ip fabric:profile-edit --pid io.fabric8.agent/org.ops4j.pax.url.mvn.repositories=http: //fusewin.tpb.lab.eng.brq.redhat.com:8081/nexus/content/repositories/ea@id=fusewin default fabric:profile-edit --append --pid io.fabric8.agent/org.ops4j.pax.url.mvn.repositories=http: //download.eng.brq.redhat.com/brewroot/repos/jb-bxms-6.3-build/latest/maven@id=ip default fabric:profile-edit --repository mvn:org.drools/drools-karaf-features/6.4.0.Final-redhat-3/xml/features feature-ip fabric:profile-edit --repository mvn:org.jboss.integration.fuse.quickstarts/karaf-features/1.4.0.redhat-630011/xml/features feature-ip fabric:profile-edit --repository mvn:org.switchyard.karaf/switchyard/2.1.0.redhat-630067/xml/core-features feature-ip fabric:profile-edit --feature fuse-bxms-switchyard-bpm feature-ip fabric:profile-edit --feature fuse-bxms-switchyard-rules feature-ip fabric:container-create-child --profile feature-ip root child watch fabric:container-list Check locks: watch find ~/.m2/repository -name "*.part.lock" Downloading is stuck - dead lock Remove locks periodically: watch "find ~/.m2/repository/ -name *.lock | xargs rm" Downloading continues...

      Description

      When fabric agent downloads maven artifacts from remote repository then the downloading freezes very soon due to some file locks. Check the reproducer.

        Gliffy Diagrams

          Attachments

            Issue Links

              Activity

                People

                • Assignee:
                  kearls Kevin Earls
                  Reporter:
                  mbasovni Martin Basovnik
                  Tester:
                  Martin Basovnik
                • Votes:
                  0 Vote for this issue
                  Watchers:
                  6 Start watching this issue

                  Dates

                  • Created:
                    Updated:
                    Resolved: