Uploaded image for project: 'Felix'
  1. Felix
  2. FELIX-5813

EventAdmin async threads should be named

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • eventadmin-1.4.10
    • eventadmin-1.5.0
    • Event Admin
    • None
    • Patch

    Description

      Similar to FELIX-5006, the threads created in the async thread pools, should also be named.

      The patch should be trivial:

      diff --git a/eventadmin/impl/src/main/java/org/apache/felix/eventadmin/impl/tasks/DefaultThreadPool.java b/eventadmin/impl/src/main/java/org/apache/felix/eventadmin/impl/tasks/DefaultThreadPool.java
      index c582fdf47..b71f51bdc 100644
      --- a/eventadmin/impl/src/main/java/org/apache/felix/eventadmin/impl/tasks/DefaultThreadPool.java
      +++ b/eventadmin/impl/src/main/java/org/apache/felix/eventadmin/impl/tasks/DefaultThreadPool.java
      @@ -76,6 +76,7 @@ public class DefaultThreadPool
                           thread.setPriority( Thread.NORM_PRIORITY );
                           thread.setDaemon( true );
      
      +                    thread.setName("EventAdminAsyncThread #" + threadCounter.getAndIncrement());
                           return thread;
                       }
                   };
      

      Attachments

        Activity

          People

            cziegeler Carsten Ziegeler
            volteanu Valentin Olteanu
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: