mirror of
https://github.com/apache/activemq-artemis.git
synced 2025-02-23 10:52:56 +00:00
ARTEMIS-3753 Small Improvement on RouterContext.internalOnly calculation
This commit is contained in:
parent
a38fae1fbd
commit
28513e048f
@ -177,12 +177,12 @@ public class RoutingContextImpl implements RoutingContext {
|
||||
}
|
||||
|
||||
if (internalOnly == null) {
|
||||
internalOnly = true;
|
||||
internalOnly = queue.isInternalQueue();
|
||||
} else {
|
||||
// every queue added has to be internal only
|
||||
internalOnly = internalOnly && queue.isInternalQueue();
|
||||
}
|
||||
|
||||
// every queue added has to be internal only
|
||||
internalOnly = internalOnly && queue.isInternalQueue();
|
||||
|
||||
queueCount++;
|
||||
}
|
||||
|
||||
|
@ -121,11 +121,11 @@ public class AMQPClusterReplicaTest extends AmqpClientTestSupport {
|
||||
producer.send(session.createTextMessage("hello"));
|
||||
}
|
||||
|
||||
org.apache.activemq.artemis.core.server.Queue mainServerQueue = server.locateQueue("test");
|
||||
org.apache.activemq.artemis.core.server.Queue node1Queue = node_1.locateQueue("test");
|
||||
org.apache.activemq.artemis.core.server.Queue node2Queue = node_2.locateQueue("test");
|
||||
|
||||
Wait.assertEquals(10L, node1Queue::getMessageCount, 5000, 10);
|
||||
|
||||
connection.close();
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user