AMQP-275 Reduce StopStart Test Size
Reduce number of messages Reduce concurrency and prefetch Increase stop/start frequency
This commit is contained in:
@@ -163,7 +163,7 @@ public abstract class RabbitUtils {
|
||||
|
||||
/**
|
||||
* Gets and removes a ThreadLocal indicating the channel MUST be physically closed.
|
||||
* @return
|
||||
* @return true if the channel must be physically closed
|
||||
*/
|
||||
public static boolean isPhysicalCloseRequired() {
|
||||
Boolean mustClose = physicalCloseRequired.get();
|
||||
|
||||
@@ -45,7 +45,7 @@ public class StopStartIntegrationTests {
|
||||
|
||||
private static AtomicInteger deliveries = new AtomicInteger();
|
||||
|
||||
private static int COUNT = 300000;
|
||||
private static int COUNT = 10000;
|
||||
|
||||
@Autowired
|
||||
private ApplicationContext ctx;
|
||||
@@ -66,7 +66,7 @@ public class StopStartIntegrationTests {
|
||||
int n;
|
||||
int lastN = 0;
|
||||
while ((n = deliveries.get()) < COUNT) {
|
||||
Thread.sleep(5000);
|
||||
Thread.sleep(2000);
|
||||
container.stop();
|
||||
container.start();
|
||||
if (System.currentTimeMillis() - t > 240000 && lastN == n) {
|
||||
|
||||
@@ -20,7 +20,7 @@
|
||||
</rabbit:bindings>
|
||||
</rabbit:direct-exchange>
|
||||
|
||||
<rabbit:listener-container connection-factory="connectionFactory" concurrency="10" prefetch="20" auto-startup="false">
|
||||
<rabbit:listener-container connection-factory="connectionFactory" concurrency="2" prefetch="5" auto-startup="false">
|
||||
<rabbit:listener ref="listener" queue-names="stop.start.queue" />
|
||||
</rabbit:listener-container>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user