From e52a05276116e44d3b271e15edea755aeb27451b Mon Sep 17 00:00:00 2001 From: gtully Date: Wed, 17 Aug 2016 15:52:54 +0100 Subject: [PATCH] add some diagnostics to track intermittent ci failure --- .../activemq/store/jdbc/JDBCCleanupLimitedPoolTest.java | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/activemq-unit-tests/src/test/java/org/apache/activemq/store/jdbc/JDBCCleanupLimitedPoolTest.java b/activemq-unit-tests/src/test/java/org/apache/activemq/store/jdbc/JDBCCleanupLimitedPoolTest.java index c9aa06bd91..fda2386b4b 100644 --- a/activemq-unit-tests/src/test/java/org/apache/activemq/store/jdbc/JDBCCleanupLimitedPoolTest.java +++ b/activemq-unit-tests/src/test/java/org/apache/activemq/store/jdbc/JDBCCleanupLimitedPoolTest.java @@ -18,6 +18,7 @@ package org.apache.activemq.store.jdbc; import org.apache.activemq.ActiveMQXAConnection; import org.apache.activemq.ActiveMQXAConnectionFactory; +import org.apache.activemq.TestSupport; import org.apache.activemq.broker.BrokerService; import org.apache.activemq.util.IOHelper; import org.apache.commons.dbcp2.BasicDataSource; @@ -142,6 +143,9 @@ public class JDBCCleanupLimitedPoolTest { executorService.shutdown(); boolean allComplete = executorService.awaitTermination(40, TimeUnit.SECONDS); + if (!allComplete) { + TestSupport.dumpAllThreads("Why-at-count-" + doneCommit.getCount() +"-"); + } done.countDown(); assertTrue("all complete", allComplete); executorService.shutdownNow();