mirror of https://github.com/apache/activemq.git
fix intermittent failure of org.apache.activemq.usecases.MultiBrokersMultiClientsUsingTcpTest
git-svn-id: https://svn.apache.org/repos/asf/activemq/trunk@705190 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
8e06b20b0a
commit
3a95fff234
|
@ -101,15 +101,14 @@ public class MessageIdList extends Assert implements MessageListener {
|
||||||
public void onMessage(Message message) {
|
public void onMessage(Message message) {
|
||||||
String id = null;
|
String id = null;
|
||||||
try {
|
try {
|
||||||
if (countDownLatch != null) {
|
|
||||||
countDownLatch.countDown();
|
|
||||||
}
|
|
||||||
|
|
||||||
id = message.getJMSMessageID();
|
id = message.getJMSMessageID();
|
||||||
synchronized (semaphore) {
|
synchronized (semaphore) {
|
||||||
messageIds.add(id);
|
messageIds.add(id);
|
||||||
semaphore.notifyAll();
|
semaphore.notifyAll();
|
||||||
}
|
}
|
||||||
|
if (countDownLatch != null) {
|
||||||
|
countDownLatch.countDown();
|
||||||
|
}
|
||||||
if (LOG.isDebugEnabled()) {
|
if (LOG.isDebugEnabled()) {
|
||||||
LOG.debug("Received message: " + message);
|
LOG.debug("Received message: " + message);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue