Details
-
Bug
-
Status: Closed
-
Minor
-
Resolution: Fixed
-
eventadmin-1.4.10
-
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; } };