Skip to content

Commit

Permalink
Merge pull request #5995 from eclipse/jetty-9.4.x-5994-qtp_free_threads
Browse files Browse the repository at this point in the history
Fixes #5994 - QueuedThreadPool "free" threads
  • Loading branch information
sbordet authored Feb 24, 2021
2 parents 8bd4a9f + 530c14e commit c9cd1e4
Show file tree
Hide file tree
Showing 5 changed files with 391 additions and 174 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -77,12 +77,13 @@ public void testStoppingContainerDoesNotUnregistersMBeans() throws Exception

String pkg = bean.getClass().getPackage().getName();
Set<ObjectName> objectNames = mbeanServer.queryNames(ObjectName.getInstance(pkg + ":*"), null);
assertEquals(1, objectNames.size());
// QueuedThreadPool and ThreadPoolBudget.
assertEquals(2, objectNames.size());

container.stop();

objectNames = mbeanServer.queryNames(ObjectName.getInstance(pkg + ":*"), null);
assertEquals(1, objectNames.size());
assertEquals(2, objectNames.size());

// Remove the MBeans to start clean on the next test.
objectNames.forEach(objectName ->
Expand All @@ -105,7 +106,8 @@ public void testDestroyingContainerUnregistersMBeans() throws Exception

String pkg = bean.getClass().getPackage().getName();
Set<ObjectName> objectNames = mbeanServer.queryNames(ObjectName.getInstance(pkg + ":*"), null);
assertEquals(1, objectNames.size());
// QueuedThreadPool and ThreadPoolBudget.
assertEquals(2, objectNames.size());

container.stop();
container.destroy();
Expand Down
Loading

0 comments on commit c9cd1e4

Please sign in to comment.