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

Concurrency issues in FeaturesService related to add/remove/list operations

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 3.0.1, 2.3.5
    • 2.4.0, 3.0.2, 2.3.6
    • None
    • None

    Description

      I have concurrent scripts (using shell bin/client.sh commands) which invoke features:listurl, features:addurl and features:removeurl.

      Sometimes I get NullPointerException here:

          public Repository[] listRepositories() {
              Collection<Repository> repos = repositories.values();
              return repos.toArray(new Repository[repos.size()]);
          }
      

      when org.apache.karaf.features.internal.FeaturesServiceImpl#removeRepository(java.net.URI) is invoked between repos.size() and repos.toArray().

      Attachments

        Activity

          People

            ffang Freeman Yue Fang
            ggrzybek Grzegorz Grzybek
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: