Skip to content

bug: Deleting a message from the queue after visibility timeout expired doesn't throw ReceiptHandleIsInvalid #12278

@ar7casper

Description

@ar7casper

Is there an existing issue for this?

  • I have searched the existing issues

Current Behavior

I've set visibility timeout to 2 seconds.
I'm handling a message and it takes 10 seconds.
Then, I'm trying to delete the message from the queue using the original receiptHandle.

Expected Behavior

I'm expecting it to throw ReceiptHandleIsInvalid, but instead it doesn't throw and seems like it's fine.

I've tested the behaviour against a real AWS SQS and it works as expected.

According to AWS, for standard queues, it might succeed, but for FIFO it should throw.

How are you starting LocalStack?

With a docker run command

Steps To Reproduce

  1. Create a FIFO queue.
  2. Set visibility timeout to 2 seconds.
  3. Process a message for 10 seconds.
  4. Try to delete the message after the processing has been completed.
  5. It should throw. It doesn't.

Environment

Anything else?

No response

Metadata

Metadata

Assignees

Labels

aws:sqsAmazon Simple Queue Servicestatus: backlogTriaged but not yet being worked ontype: bugBug report

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions