Spring-cloud-aws: Warn or throw Exception if SQS Message couldn't be deleted

Created on 5 Apr 2020  路  5Comments  路  Source: spring-cloud/spring-cloud-aws

By default, messages should be deleted if the reading and processing was successful (Listener method didn't throw error). However, if the queue doesn't have RemovePermission on AWS, no warn or error is thrown, making it look like everything happened ok.

@SpringBootApplication
public class DemoApplication {

    public static void main(String[] args) {
        SpringApplication.run(DemoApplication.class, args);
    }

    @SqsListener(value = "test-queue")
    public void queueListener(String message) {
        System.out.println(message);
    }
}

image

sqs help wanted bug

All 5 comments

hi @maciejwalkowiak, can I take this one?

@karmanov go for it 馃憤

@karmanov do you think you will be able to implement it in foreseeable future?

hi @maciejwalkowiak yes, I will implement it this week.

Was this page helpful?
0 / 5 - 0 ratings