SQSListener scales even if i manually set sync working #1116
Labels
component: sqs
SQS integration related issue
status: waiting-for-feedback
Waiting for feedback from issuer
Type: Bug
Component: SQS
Describe the Bug
Hello!
Please, help me understand what i do wrong.
I apologize i can't share with you stack trace because the code under nda. I will try describe the problem:
I use 'spring-cloud-aws-starter-sqs' dependency, version 3.0.1. My configuration is auto (i don't define any beans - only credentials and region in application.properties).
Next, i use SqsListener like:
@SqsListener(value = "${sqs.balance.calculator}", maxConcurrentMessages = "1", maxMessagesPerPoll = "1")
So my main goal is correct calculation. Optimization is not important in my case. So i would my listener works sync.
I must do that because inside the method i adjust the same entity, and if i do it async - i have a lot of optimistic blocking exception.
But, the main reason why i write this issue is: Sometimes i catch errors: [Row was updated or deleted by another transaction (or unsaved-value mapping was incorrect)]
And it mean that somewhere occurs autoscaling. But why, what i can do wrong?
Thanks!
The text was updated successfully, but these errors were encountered: