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

Patch result not stored if patching causes refresh of features service

XMLWordPrintable

    • False
    • None
    • False
    • % %
    • Todo
    • Very Likely

      When applying a patch ENTESB-21879 with updates to pax-logging-api (a critical bundle), Karaf's feature service needs to be refreshed, because it uses pax-logging-api (almost all the bundles use it).

      However patching mechanism fails to store the result of patching installation and while the state of the bundles is fine, the patch is not marked as installed.

      The exception is:

      java.util.concurrent.RejectedExecutionException: Task java.util.concurrent.FutureTask@3dc401b4 rejected from java.util.concurrent.ThreadPoolExecutor@3df508d[Terminated, pool size = 0, active threads = 0, queued tasks = 0, completed tasks = 2]
      	at java.util.concurrent.ThreadPoolExecutor$AbortPolicy.rejectedExecution(ThreadPoolExecutor.java:2063)
      	at java.util.concurrent.ThreadPoolExecutor.reject(ThreadPoolExecutor.java:830)
      	at java.util.concurrent.ThreadPoolExecutor.execute(ThreadPoolExecutor.java:1379)
      	at java.util.concurrent.AbstractExecutorService.submit(AbstractExecutorService.java:134)
      	at java.util.concurrent.Executors$DelegatedExecutorService.submit(Executors.java:681)
      	at org.apache.karaf.features.internal.service.FeaturesServiceImpl.doProvisionInThread(FeaturesServiceImpl.java:1003)
      	at org.apache.karaf.features.internal.service.FeaturesServiceImpl.doProvisionInThread(FeaturesServiceImpl.java:978)
      	at org.apache.karaf.features.internal.service.FeaturesServiceImpl.refreshFeatures(FeaturesServiceImpl.java:1236)
      	at org.jboss.fuse.patch.impl.PatchServiceImpl.lambda$install$5(PatchServiceImpl.java:772)
      	at java.lang.Thread.run(Thread.java:750)
      

              ggrzybek Grzegorz Grzybek
              ggrzybek Grzegorz Grzybek
              Tomas Veskrna Tomas Veskrna
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated:
                Resolved: