You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi. In testing, I keep running into the situation where AmazonSQSRequester creates hundreds of temporary queues, with hundreds of messages in each, and ends up in a state it seemingly can't recover from.
It's hard to figure out what's going on without getting way too well acquainted with the source code, but I've tried to produce a simple test case which can reliably reproduce the problem (or some problem anyway - hopefully not a different one):
@Test
public void test() throws InterruptedException {
AmazonSQSRequesterClientBuilder
.standard()
.withAmazonSQS(AmazonSQSClientBuilder.defaultClient())
.withInternalQueuePrefix("deleteme")
.build();
while (true) Thread.sleep(500);
}
In this example, the queue deleteme does not yet exist at test start time. If I leave this test running for a while, after a few minutes, it starts spinning away, sucking significant CPU resources, and generating a huge volume of traffic to SQS (and messages sent to SQS) - here's a summarised extract of API activity over a three second period:
The start of the runaway process seems to correspond with the first occurrence of AmazonSQSIdleQueueDeletingClient - Checking all queues begining with prefix appearing in the logs. (I guess the random initialDelay in IdleQueueSweeper causes the delay in the first occurrence of the problem.)
I wonder if #28 is not related (is not the cause)?
The text was updated successfully, but these errors were encountered:
Hi. In testing, I keep running into the situation where
AmazonSQSRequester
creates hundreds of temporary queues, with hundreds of messages in each, and ends up in a state it seemingly can't recover from.It's hard to figure out what's going on without getting way too well acquainted with the source code, but I've tried to produce a simple test case which can reliably reproduce the problem (or some problem anyway - hopefully not a different one):
In this example, the queue
deleteme
does not yet exist at test start time. If I leave this test running for a while, after a few minutes, it starts spinning away, sucking significant CPU resources, and generating a huge volume of traffic to SQS (and messages sent to SQS) - here's a summarised extract of API activity over a three second period:The start of the runaway process seems to correspond with the first occurrence of
AmazonSQSIdleQueueDeletingClient - Checking all queues begining with prefix
appearing in the logs. (I guess the randominitialDelay
inIdleQueueSweeper
causes the delay in the first occurrence of the problem.)I wonder if #28 is not related (is not the cause)?
The text was updated successfully, but these errors were encountered: