Uploaded image for project: 'Sling'
  1. Sling
  2. SLING-4867

EntityResourceList should be thread-safe

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • Installer Core 3.6.6
    • Installer Core 3.7.0
    • Installer
    • None

    Description

      There was a Jenkins test failure[0] due to the following exception. This looks like EntityResourceList should be thread-safe.

      cziegeler, I took the liberty to assign the issue to you. Hope that's ok.

      Exception in thread "OsgiInstallerImpl" java.util.ConcurrentModificationException
      	at java.util.ArrayList.sort(ArrayList.java:1456)
      	at java.util.Collections.sort(Collections.java:141)
      	at org.apache.sling.installer.core.impl.EntityResourceList.getActiveResource(EntityResourceList.java:125)
      	at org.apache.sling.installer.factories.configuration.impl.ConfigTaskCreator.createTask(ConfigTaskCreator.java:71)
      	at org.apache.sling.installer.core.impl.OsgiInstallerImpl.getTask(OsgiInstallerImpl.java:632)
      	at org.apache.sling.installer.core.impl.OsgiInstallerImpl.computeTasks(OsgiInstallerImpl.java:612)
      	at org.apache.sling.installer.core.impl.OsgiInstallerImpl.run(OsgiInstallerImpl.java:262)
      	at java.lang.Thread.run(Thread.java:745)
      

      [0] https://builds.apache.org/job/sling-trunk-1.8/1292/

      Attachments

        Activity

          People

            cziegeler Carsten Ziegeler
            jsedding Julian Sedding
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: