Messages passed visibility timeout still "in flight"

0

I am occasionally seeing a problem that I cannot explain with Fifo queues.
In the console and on the aws-cli I see messages in-flight that are way passed their visibility timeouts.
They stay there for hours.
It seems to be the same issue this person posted:
https://forums.aws.amazon.com/thread.jspa?messageID=520092

Looking at my process output, all messages seem to have been processed without issue so I don't know what the remaining in flight means.
I am using boto3 with python2 to interact with the queues.

Thank you

demandé il y a 5 ans1517 vues
1 réponse
0
Réponse acceptée

Hi there!

What you're describing sounds more like there are a few messages that are repeatedly failing to process for some reason. If you don't have a redrive policy (https://docs.aws.amazon.com/AWSSimpleQueueService/latest/SQSDeveloperGuide/sqs-dead-letter-queues.html) defined for a FIFO queue, any messages that can't be processed will cycle back and forth between visible and invisible indefinitely.

If you're looking at metrics like ApproximateNumberOfMessagesNotVisible, it could look like it's staying elevated consistently, giving the impression that messages are staying invisible for a long time, when in truth there are several poison pills fluctuating back and forth.

What does ApproximateAgeOfOldestMessage look like for your queue?

Robin

AWS
répondu il y a 5 ans

Vous n'êtes pas connecté. Se connecter pour publier une réponse.

Une bonne réponse répond clairement à la question, contient des commentaires constructifs et encourage le développement professionnel de la personne qui pose la question.

Instructions pour répondre aux questions