Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

SQS tag length exceeded #58

Open
rafalwrzeszcz opened this issue Oct 28, 2020 · 0 comments
Open

SQS tag length exceeded #58

rafalwrzeszcz opened this issue Oct 28, 2020 · 0 comments

Comments

@rafalwrzeszcz
Copy link

rafalwrzeszcz commented Oct 28, 2020

When using the requester client our Spring Boot application logs are contantly being filled with:

2020-10-28 13:10:58.300 INFO 8 --- [nsumer-Thread-1] c.a.s.s.AmazonSQSIdleQueueDeletingClient : Checking all queues begining with prefix __RequesterClientQueues__ for idleness
2020-10-28 13:10:58.335 ERROR 8 --- [nsumer-Thread-1] c.a.services.sqs.util.SQSQueueUtils : Unexpected exception
java.lang.RuntimeException: Exception encountered while processing message with ID 9cd43da3-34d6-4918-af84-1693dbb44462
at com.amazonaws.services.sqs.util.SQSMessageConsumer.handleMessage(SQSMessageConsumer.java:152) ~[amazon-sqs-java-temporary-queues-client-1.2.0.jar!/:na]
at java.base/java.util.stream.ForEachOps$ForEachOp$OfRef.accept(ForEachOps.java:183) ~[na:na]
at java.base/java.util.ArrayList$ArrayListSpliterator.forEachRemaining(ArrayList.java:1655) ~[na:na]
at java.base/java.util.stream.AbstractPipeline.copyInto(AbstractPipeline.java:484) ~[na:na]
at java.base/java.util.stream.ForEachOps$ForEachTask.compute(ForEachOps.java:290) ~[na:na]
at java.base/java.util.concurrent.CountedCompleter.exec(CountedCompleter.java:746) ~[na:na]
at java.base/java.util.concurrent.ForkJoinTask.doExec(ForkJoinTask.java:290) ~[na:na]
at java.base/java.util.concurrent.ForkJoinTask.doInvoke(ForkJoinTask.java:408) ~[na:na]
at java.base/java.util.concurrent.ForkJoinTask.invoke(ForkJoinTask.java:736) ~[na:na]
at java.base/java.util.stream.ForEachOps$ForEachOp.evaluateParallel(ForEachOps.java:159) ~[na:na]
at java.base/java.util.stream.ForEachOps$ForEachOp$OfRef.evaluateParallel(ForEachOps.java:173) ~[na:na]
at java.base/java.util.stream.AbstractPipeline.evaluate(AbstractPipeline.java:233) ~[na:na]
at java.base/java.util.stream.ReferencePipeline.forEach(ReferencePipeline.java:497) ~[na:na]
at java.base/java.util.stream.ReferencePipeline$Head.forEach(ReferencePipeline.java:661) ~[na:na]
at com.amazonaws.services.sqs.util.SQSMessageConsumer.poll(SQSMessageConsumer.java:120) ~[amazon-sqs-java-temporary-queues-client-1.2.0.jar!/:na]
at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128) ~[na:na]
at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628) ~[na:na]
at java.base/java.lang.Thread.run(Thread.java:834) ~[na:na]
Caused by: com.amazonaws.services.sqs.model.AmazonSQSException: Tag values must be between 0 and 256 characters in length. (Service: AmazonSQS; Status Code: 400; Error Code: InvalidParameterValue; Request ID: 26a1d477-5156-5f2e-b6df-8c6421749e63)
at com.amazonaws.http.AmazonHttpClient$RequestExecutor.handleErrorResponse(AmazonHttpClient.java:1712) ~[aws-java-sdk-core-1.11.601.jar!/:na]
at com.amazonaws.http.AmazonHttpClient$RequestExecutor.executeOneRequest(AmazonHttpClient.java:1367) ~[aws-java-sdk-core-1.11.601.jar!/:na]
at com.amazonaws.http.AmazonHttpClient$RequestExecutor.executeHelper(AmazonHttpClient.java:1113) ~[aws-java-sdk-core-1.11.601.jar!/:na]
at com.amazonaws.http.AmazonHttpClient$RequestExecutor.doExecute(AmazonHttpClient.java:770) ~[aws-java-sdk-core-1.11.601.jar!/:na]
at com.amazonaws.http.AmazonHttpClient$RequestExecutor.executeWithTimer(AmazonHttpClient.java:744) ~[aws-java-sdk-core-1.11.601.jar!/:na]
at com.amazonaws.http.AmazonHttpClient$RequestExecutor.execute(AmazonHttpClient.java:726) ~[aws-java-sdk-core-1.11.601.jar!/:na]
at com.amazonaws.http.AmazonHttpClient$RequestExecutor.access$500(AmazonHttpClient.java:686) ~[aws-java-sdk-core-1.11.601.jar!/:na]
at com.amazonaws.http.AmazonHttpClient$RequestExecutionBuilderImpl.execute(AmazonHttpClient.java:668) ~[aws-java-sdk-core-1.11.601.jar!/:na]
at com.amazonaws.http.AmazonHttpClient.execute(AmazonHttpClient.java:532) ~[aws-java-sdk-core-1.11.601.jar!/:na]
at com.amazonaws.http.AmazonHttpClient.execute(AmazonHttpClient.java:512) ~[aws-java-sdk-core-1.11.601.jar!/:na]
at com.amazonaws.services.sqs.AmazonSQSClient.doInvoke(AmazonSQSClient.java:2214) ~[aws-java-sdk-sqs-1.11.601.jar!/:na]
at com.amazonaws.services.sqs.AmazonSQSClient.invoke(AmazonSQSClient.java:2181) ~[aws-java-sdk-sqs-1.11.601.jar!/:na]
at com.amazonaws.services.sqs.AmazonSQSClient.invoke(AmazonSQSClient.java:2170) ~[aws-java-sdk-sqs-1.11.601.jar!/:na]
at com.amazonaws.services.sqs.AmazonSQSClient.executeTagQueue(AmazonSQSClient.java:2059) ~[aws-java-sdk-sqs-1.11.601.jar!/:na]
at com.amazonaws.services.sqs.AmazonSQSClient.tagQueue(AmazonSQSClient.java:2031) ~[aws-java-sdk-sqs-1.11.601.jar!/:na]
at com.amazonaws.services.sqs.util.AbstractAmazonSQSClientWrapper.tagQueue(AbstractAmazonSQSClientWrapper.java:195) ~[amazon-sqs-java-temporary-queues-client-1.2.0.jar!/:na]
at com.amazonaws.services.sqs.AmazonSQSVirtualQueuesClient.lambda$tagQueue$13(AmazonSQSVirtualQueuesClient.java:245) ~[amazon-sqs-java-temporary-queues-client-1.2.0.jar!/:na]
at java.base/java.util.Optional.orElseGet(Optional.java:369) ~[na:na]
at com.amazonaws.services.sqs.AmazonSQSVirtualQueuesClient.tagQueue(AmazonSQSVirtualQueuesClient.java:245) ~[amazon-sqs-java-temporary-queues-client-1.2.0.jar!/:na]
at com.amazonaws.services.sqs.util.AbstractAmazonSQSClientWrapper.tagQueue(AbstractAmazonSQSClientWrapper.java:195) ~[amazon-sqs-java-temporary-queues-client-1.2.0.jar!/:na]
at com.amazonaws.services.sqs.AbstractAmazonSQS.tagQueue(AbstractAmazonSQS.java:223) ~[aws-java-sdk-sqs-1.11.601.jar!/:na]
at com.amazonaws.services.sqs.SQSExecutorService$Metadata.saveToTag(SQSExecutorService.java:159) ~[amazon-sqs-java-temporary-queues-client-1.2.0.jar!/:na]
at com.amazonaws.services.sqs.SQSExecutorService$SQSFutureTask.done(SQSExecutorService.java:379) ~[amazon-sqs-java-temporary-queues-client-1.2.0.jar!/:na]
at java.base/java.util.concurrent.FutureTask.finishCompletion(FutureTask.java:381) ~[na:na]
at java.base/java.util.concurrent.FutureTask.setException(FutureTask.java:250) ~[na:na]
at java.base/java.util.concurrent.FutureTask.runAndReset(FutureTask.java:308) ~[na:na]
at com.amazonaws.services.sqs.SQSScheduledExecutorService$ScheduledSQSFutureTask.access$201(SQSScheduledExecutorService.java:33) ~[amazon-sqs-java-temporary-queues-client-1.2.0.jar!/:na]
at com.amazonaws.services.sqs.SQSScheduledExecutorService$ScheduledSQSFutureTask.run(SQSScheduledExecutorService.java:147) ~[amazon-sqs-java-temporary-queues-client-1.2.0.jar!/:na]
at com.amazonaws.services.sqs.SQSExecutorService.accept(SQSExecutorService.java:196) ~[amazon-sqs-java-temporary-queues-client-1.2.0.jar!/:na]
at com.amazonaws.services.sqs.util.SQSMessageConsumer.accept(SQSMessageConsumer.java:166) ~[amazon-sqs-java-temporary-queues-client-1.2.0.jar!/:na]
at com.amazonaws.services.sqs.util.SQSMessageConsumer.handleMessage(SQSMessageConsumer.java:145) ~[amazon-sqs-java-temporary-queues-client-1.2.0.jar!/:na]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant