Uploaded image for project: 'Karaf'
  1. Karaf
  2. KARAF-6238

org.apache.karaf.profile.assembly.Builder#downloadLibraries is not synchronized

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Blocker
    • Resolution: Fixed
    • 4.2.4
    • 4.3.0, 4.2.5
    • None
    • None

    Description

      I had strange case. Running:

      for n in {1..100}; do
          mvn clean install -DskipTests -f /path/to/custom-karaf-distro
          cp /path/to/custom-karaf-distro/target/assembly/etc/config.properties /data/tmp/config-$n.properties
          cat /path/to/custom-karaf-distro/target/assembly/etc/config.properties | sort > /data/tmp/config-$n-sorted.properties
      done
      

      I was usually getting the same config.propertie. But not always. Occasionally some extra packages were missing...

      Long story short, downloader uses 8 threads and org.apache.karaf.profile.assembly.Builder#downloadLibraries() uses the download callback without any synchronization...

      Attachments

        Activity

          People

            ggrzybek Grzegorz Grzybek
            ggrzybek Grzegorz Grzybek
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: