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

Messages not consumed from SQS queue #1132

Closed
sabarees19 opened this issue Apr 5, 2024 · 6 comments
Closed

Messages not consumed from SQS queue #1132

sabarees19 opened this issue Apr 5, 2024 · 6 comments
Labels
component: sqs SQS integration related issue

Comments

@sabarees19
Copy link

Type: Bug

Component:
"SQS" -->

Describe the bug
I am currently having two queues and using separate @SqsListener , while spinning in Dev environment it's start listening
and receiving by both queues but after some time it's stop listening only to one queue.

But while am trying in Local with the stopped Queue the messages have been received also in Messages in flight state and before i running my Local all the messages in Messages available state but the queue configurations are all same. Don't the what the exact issue is happening.

Sample
@SqlListener(value="${queue.name.req}", deletionPolicy=SqsMessageDeletionPolicy.ON_SUCCESS) {
...
}

@SqlListener(value="${queue.name.pro}", deletionPolicy=SqsMessageDeletionPolicy.ON_SUCCESS) {
...
}

@maciejwalkowiak
Copy link
Contributor

@sabarees19 which Spring Cloud AWS version? Can you provide a git repo with a sample that reproduces this issue?

@sabarees19
Copy link
Author

sabarees19 commented Apr 7, 2024

        <dependency>
		<groupId>org.springframework.cloud</groupId>
		<artifactId>spring-cloud-aws-messaging</artifactId>
		<version>2.2.6.RELEASE</version>
	</dependency>

i facing this issue in my current working project. Will update with sample ASAP.

Current versions :

  1. Java version --> 11
  2. spring version --> 2.7.12

it's initially listening and got the log,

image

and after sometimes all messages been in the available state

image

@maciejwalkowiak
Copy link
Contributor

@sabarees19 2.x is out of support and maintenance. Please upgrade to 3.x (you'd have to upgrade to Spring Boot 3.x too).

@sabarees19
Copy link
Author

sabarees19 commented Apr 7, 2024

The higher version of Spring Cloud AWS messaging is 2.2.6 in org and 2.2.4 in io that are available on mvnrepository. is there any higher ?

@maciejwalkowiak
Copy link
Contributor

Look at releases in GitHub repo to see the latest versions, also at the reference docs. Starting from 3.0, SQS and SNS have separate modules

@tomazfernandes tomazfernandes added the component: sqs SQS integration related issue label Apr 15, 2024
@tomazfernandes
Copy link
Contributor

I'll close this issue for lack of feedback, but we can reopen if necessary. Thanks.

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
Projects
None yet
Development

No branches or pull requests

3 participants