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

Configuring dualstack breaks SQS #1263

Open
alo-id opened this issue Oct 29, 2024 · 1 comment
Open

Configuring dualstack breaks SQS #1263

alo-id opened this issue Oct 29, 2024 · 1 comment
Labels
component: sqs SQS integration related issue type: bug Something isn't working
Milestone

Comments

@alo-id
Copy link

alo-id commented Oct 29, 2024

Type: Bug

Component:
S3, SQS

Describe the bug
After configuring dual stack for S3 by setting the property spring.cloud.aws.dualstack-enabled, SQS started throwing exceptions.
See the redacted stack trace
Caused by: io.awspring.cloud.sqs.QueueAttributesResolvingException: Error resolving attributes for queue my-queue with strategy CREATE and queueAttributesNames [] at io.awspring.cloud.sqs.QueueAttributesResolver.wrapException(QueueAttributesResolver.java:90) at java.base/java.util.concurrent.CompletableFuture.uniExceptionally(CompletableFuture.java:990) at java.base/java.util.concurrent.CompletableFuture$UniExceptionally.tryFire(CompletableFuture.java:974) ... 47 common frames omitted Caused by: software.amazon.awssdk.core.exception.SdkClientException: Received an UnknownHostException when attempting to interact with a service. See cause for the exact endpoint that is failing to resolve. If this is happening on an endpoint that previously worked, there may be a network connectivity issue or your DNS cache could be storing endpoints for too long. at software.amazon.awssdk.core.exception.SdkClientException$BuilderImpl.build(SdkClientException.java:111) at software.amazon.awssdk.awscore.interceptor.HelpfulUnknownHostExceptionInterceptor.modifyException(HelpfulUnknownHostExceptionInterceptor.java:59) at software.amazon.awssdk.core.interceptor.ExecutionInterceptorChain.modifyException(ExecutionInterceptorChain.java:202) at software.amazon.awssdk.core.internal.http.pipeline.stages.utils.ExceptionReportingUtils.runModifyException(ExceptionReportingUtils.java:54) at software.amazon.awssdk.core.internal.http.pipeline.stages.utils.ExceptionReportingUtils.reportFailureToInterceptors(ExceptionReportingUtils.java:38) at software.amazon.awssdk.core.internal.http.pipeline.stages.AsyncExecutionFailureExceptionReportingStage.lambda$execute$0(AsyncExecutionFailureExceptionReportingStage.java:49) at java.base/java.util.concurrent.CompletableFuture.uniHandle(CompletableFuture.java:934) at java.base/java.util.concurrent.CompletableFuture$UniHandle.tryFire(CompletableFuture.java:911) ... 32 common frames omitted Caused by: software.amazon.awssdk.core.exception.SdkClientException: Unable to execute HTTP request: sqs.eu-central-1.api.aws at software.amazon.awssdk.core.exception.SdkClientException$BuilderImpl.build(SdkClientException.java:111) at software.amazon.awssdk.core.exception.SdkClientException.create(SdkClientException.java:47) at software.amazon.awssdk.core.internal.http.pipeline.stages.utils.RetryableStageHelper.setLastException(RetryableStageHelper.java:223) at software.amazon.awssdk.core.internal.http.pipeline.stages.utils.RetryableStageHelper.setLastException(RetryableStageHelper.java:218) at software.amazon.awssdk.core.internal.http.pipeline.stages.AsyncRetryableStage$RetryingExecutor.maybeRetryExecute(AsyncRetryableStage.java:182) ... 23 common frames omitted Suppressed: software.amazon.awssdk.core.exception.SdkClientException: Request attempt 1 failure: Unable to execute HTTP request: sqs.eu-central-1.api.aws: Name does not resolve Suppressed: software.amazon.awssdk.core.exception.SdkClientException: Request attempt 2 failure: Unable to execute HTTP request: sqs.eu-central-1.api.aws Suppressed: software.amazon.awssdk.core.exception.SdkClientException: Request attempt 3 failure: Unable to execute HTTP request: sqs.eu-central-1.api.aws Caused by: java.net.UnknownHostException: sqs.eu-central-1.api.aws at java.base/java.net.InetAddress$CachedLookup.get(InetAddress.java:988) at java.base/java.net.InetAddress.getAllByName0(InetAddress.java:1818) at java.base/java.net.InetAddress.getAllByName(InetAddress.java:1688)

After looking in the AWS documentation I see that dualstack is not supported for SQS.

@alo-id alo-id changed the title Configuring dualstack breaks sqs Configuring dualstack breaks SQS Oct 29, 2024
@maciejwalkowiak maciejwalkowiak added type: bug Something isn't working component: sqs SQS integration related issue labels Oct 29, 2024
@maciejwalkowiak maciejwalkowiak modified the milestones: 3.3.0, 3.3.0 M2 Oct 29, 2024
@tomazfernandes
Copy link
Contributor

Well, if AWS does not support the feature for SQS, I guess the only thing we could do from our and would be to document this somewhere?

Or am I missing anything?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
component: sqs SQS integration related issue type: bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants