You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@activemq.apache.org by gt...@apache.org on 2016/07/05 13:09:05 UTC

activemq git commit: increase service logging, seems npe in the mix on intermittent failure

Repository: activemq
Updated Branches:
  refs/heads/master 4386750fd -> 30ff378a3


increase service logging, seems npe in the mix on intermittent failure


Project: http://git-wip-us.apache.org/repos/asf/activemq/repo
Commit: http://git-wip-us.apache.org/repos/asf/activemq/commit/30ff378a
Tree: http://git-wip-us.apache.org/repos/asf/activemq/tree/30ff378a
Diff: http://git-wip-us.apache.org/repos/asf/activemq/diff/30ff378a

Branch: refs/heads/master
Commit: 30ff378a35471120d8d0a0f96367c5684fc43daf
Parents: 4386750
Author: gtully <ga...@gmail.com>
Authored: Tue Jul 5 14:08:43 2016 +0100
Committer: gtully <ga...@gmail.com>
Committed: Tue Jul 5 14:08:43 2016 +0100

----------------------------------------------------------------------
 .../org/apache/activemq/bugs/TrapMessageInJDBCStoreTest.java   | 6 ++++++
 1 file changed, 6 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/activemq/blob/30ff378a/activemq-unit-tests/src/test/java/org/apache/activemq/bugs/TrapMessageInJDBCStoreTest.java
----------------------------------------------------------------------
diff --git a/activemq-unit-tests/src/test/java/org/apache/activemq/bugs/TrapMessageInJDBCStoreTest.java b/activemq-unit-tests/src/test/java/org/apache/activemq/bugs/TrapMessageInJDBCStoreTest.java
index c073646..3bf4bbd 100644
--- a/activemq-unit-tests/src/test/java/org/apache/activemq/bugs/TrapMessageInJDBCStoreTest.java
+++ b/activemq-unit-tests/src/test/java/org/apache/activemq/bugs/TrapMessageInJDBCStoreTest.java
@@ -36,6 +36,7 @@ import javax.jms.TextMessage;
 import junit.framework.TestCase;
 import org.apache.activemq.ActiveMQConnectionFactory;
 import org.apache.activemq.broker.BrokerService;
+import org.apache.activemq.broker.TransportConnection;
 import org.apache.activemq.store.jdbc.DataSourceServiceSupport;
 import org.apache.activemq.store.jdbc.JDBCPersistenceAdapter;
 import org.apache.activemq.store.jdbc.LeaseDatabaseLocker;
@@ -43,8 +44,10 @@ import org.apache.activemq.store.jdbc.TransactionContext;
 import org.apache.activemq.util.IOHelper;
 import org.apache.activemq.util.LeaseLockerIOExceptionHandler;
 import org.apache.derby.jdbc.EmbeddedDataSource;
+import org.apache.log4j.Level;
 import org.slf4j.Logger;
 import org.slf4j.LoggerFactory;
+import org.slf4j.impl.Log4jLoggerAdapter;
 
 /**
  * Test to demostrate a message trapped in the JDBC store and not
@@ -107,6 +110,9 @@ public class TrapMessageInJDBCStoreTest extends TestCase {
 
     public void testDBCommitException() throws Exception {
 
+        org.apache.log4j.Logger serviceLogger = org.apache.log4j.Logger.getLogger(TransportConnection.class.getName() + ".Service");
+        serviceLogger.setLevel (Level.TRACE);
+
         broker = this.createBroker(false);
         broker.deleteAllMessages();
         broker.start();