ARTEMIS-3807 Simplify Redistributor avoid races, and fix ProtocolMessageLoadBalancingTest
authorClebert Suconic <clebertsuconic@apache.org>
Thu, 28 Apr 2022 23:35:26 +0000 (19:35 -0400)
committerclebertsuconic <clebert.suconic@gmail.com>
Fri, 29 Apr 2022 12:24:06 +0000 (08:24 -0400)
commit48cd586ac59440c99d1bde9477b82c4b8c44a16b
treed14a990464eff56175e1816984828a2f5b7af17c
parent1a273821ed5470f8f2e91f1b9fdf7c8ca4ddf504
ARTEMIS-3807 Simplify Redistributor avoid races, and fix ProtocolMessageLoadBalancingTest

The control existing in Redistributor is not needed as the Queue::deliver will already have a control on re-scheduling the loop and avoid holding references for too long.
artemis-server/src/main/java/org/apache/activemq/artemis/core/server/cluster/impl/Redistributor.java
artemis-server/src/main/java/org/apache/activemq/artemis/core/server/impl/QueueImpl.java
artemis-server/src/test/java/org/apache/activemq/artemis/tests/util/ActiveMQTestBase.java
tests/integration-tests/src/test/java/org/apache/activemq/artemis/tests/integration/cluster/crossprotocol/ProtocolsMessageLoadBalancingTest.java
tests/integration-tests/src/test/java/org/apache/activemq/artemis/tests/integration/cluster/distribution/MessageRedistributionTest.java