mirror of
https://github.com/apache/activemq.git
synced 2025-02-16 23:16:52 +00:00
https://issues.apache.org/jira/browse/AMQ-2902 - resolve intermittent test failure when stop ocurrs while start is in progress
git-svn-id: https://svn.apache.org/repos/asf/activemq/trunk@1518171 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
f66e9a1f16
commit
65ba623c96
@ -195,7 +195,7 @@ public class TransportConnection implements Connection, Task, CommandVisitor {
|
||||
}
|
||||
}
|
||||
}
|
||||
if (!stopping.get()) {
|
||||
if (!stopping.get() && !pendingStop) {
|
||||
transportException.set(e);
|
||||
if (TRANSPORTLOG.isDebugEnabled()) {
|
||||
TRANSPORTLOG.debug(this + " failed: " + e, e);
|
||||
|
@ -53,6 +53,7 @@ public class AMQ2902Test extends TestCase {
|
||||
|
||||
gotExceptionInLog.set(Boolean.TRUE);
|
||||
LOG.error("got event: " + event + ", ex:" + event.getThrowableInformation().getThrowable(), event.getThrowableInformation().getThrowable());
|
||||
LOG.error("Event source: ", new Throwable("Here"));
|
||||
}
|
||||
if( !"Loaded the Bouncy Castle security provider.".equals(event.getMessage()) ) {
|
||||
if (event.getMDC("activemq.broker") == null) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user