Skip to content

[fix] Redeliver messages that can't be decrypted.#160

Merged
shibd merged 4 commits into
apache:mainfrom
shibd:fix_decrypted
Feb 22, 2023
Merged

[fix] Redeliver messages that can't be decrypted.#160
shibd merged 4 commits into
apache:mainfrom
shibd:fix_decrypted

Conversation

@shibd
Copy link
Copy Markdown
Member

@shibd shibd commented Dec 29, 2022

Master Issue: apache/pulsar#3097

Motivation

Customers who can't decrypt their message must be given a chance to re-decrypt the message if redelivery is enabled.

Modifications

  • When the decrypted message fails, add to unAckedMessageTrackerPtr_ to wait for redelivery.

Verifying this change

  • Added testRedeliveryOfDecryptionFailedMessages to cover it.

Documentation

  • doc-required
    (Your PR needs to update docs and you will update later)

  • doc-not-needed
    (Please explain why)

  • doc
    (Your PR contains doc changes)

  • doc-complete
    (Docs have been already added)

@shibd shibd self-assigned this Jan 19, 2023
@shibd shibd added the bug Something isn't working label Jan 19, 2023
@shibd shibd added this to the 3.2.0 milestone Jan 19, 2023
Comment thread tests/ConsumerTest.cc Outdated
Comment thread tests/ConsumerTest.cc Outdated
Comment thread tests/ConsumerTest.cc
Comment thread tests/ConsumerTest.cc Outdated
@shibd shibd requested a review from BewareMyPower February 20, 2023 02:20
Comment thread tests/ConsumerTest.cc
@shibd shibd requested a review from RobertIndie February 22, 2023 02:35
@shibd shibd merged commit 92c182a into apache:main Feb 22, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants