awslabs/amazon-sqs-java-extended-client-lib

api deleteMessage(DeleteMessageRequest deleteMessageRequest) not deleting message from S3 even when doesCleanupS3Payload = true

Opened this issue · 0 comments

api is calling internally isS3ReceiptHandle(receiptHandle) which will always return false as receiptHandle does not contain
receiptHandle.contains(SQSExtendedClientConstants.S3_BUCKET_NAME_MARKER)
&& receiptHandle.contains(SQSExtendedClientConstants.S3_KEY_MARKER);

payloadStore.deleteOriginalPayload(messagePointer) is called only when isS3ReceiptHandle returns true.

Sounds like bug. If not bug, please let me know how receiptHandle will contain requiredText while sending message from extendedClient