-
Notifications
You must be signed in to change notification settings - Fork 197
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
DeadLetterQueueSourceArn missing while receiving message from DLQ #921
Comments
Fixed in |
Hi! It seems that the fix provided in #985 is not completely accurate, as according to AWS SQS specifications attribute Looking at #985, test to be passed should look something like: test("should return DeadLetterQueueSourceArn in receive DLQ message attributes") {
// given
val messageBody = "Message 1"
val createDlqQueueResult = client.createQueue(new CreateQueueRequest("testDlq")).getQueueUrl
val redrivePolicy = RedrivePolicy("testDlq", awsRegion, awsAccountId, 1).toJson.toString
val createQueueResult = client
.createQueue(
new CreateQueueRequest("main")
.withAttributes(
Map(redrivePolicyAttribute -> redrivePolicy).asJava
)
)
.getQueueUrl
// when
client.sendMessage(createQueueResult, messageBody)
// all we need to achieve here is to trigger move message to dead letter queue
client.receiveMessage(
new ReceiveMessageRequest()
.withQueueUrl(createQueueResult)
.withAttributeNames("All")
)
// data we are looking for should be coming with a message received from DLQ
val receiveDlqResult = client.receiveMessage(
new ReceiveMessageRequest()
.withQueueUrl(createDlqQueueResult)
.withAttributeNames("All")
)
// then
receiveDlqResult.getMessages.asScala.toList.flatMap(_.getAttributes.asScala.toList) should contain(
("DeadLetterQueueSourceArn", s"arn:aws:sqs:$awsRegion:$awsAccountId:main")
)
} |
I'll check this |
Released in v1.6.11 |
Hey!
I'm currently using your awesome tool to test AWS SQS queues locally.
The goal of my architecture would be to have SQS queues with a DeadLetters Queue.
I'm able to pull messages from the DLQ, However
DeadLetterQueueSourceArn
is missing from the attributes.Example with AWS SQS:
Example with ElasticMQ:
It would be great if this attribute could be added when the message is moved to the DLQ.
The text was updated successfully, but these errors were encountered: