[pulsar-client] Fix send to deadLetterTopic not working when reach maxRedeliverCount - #14317
Merged
315157973 merged 1 commit intoFeb 22, 2022
Conversation
codelipenghui
requested review from
315157973,
Jason918,
Technoboy-,
aloyszhang,
congbobo184,
hangc0276 and
hezhangjian
February 16, 2022 14:38
Contributor
Author
|
Could you please take a look about this? @hangc0276 @congbobo184 |
congbobo184
approved these changes
Feb 17, 2022
Technoboy-
reviewed
Feb 17, 2022
Jason918
approved these changes
Feb 22, 2022
315157973
approved these changes
Feb 22, 2022
| @Test | ||
| public void testMessageImplGetReaderSchema() { | ||
| MessageMetadata builder = new MessageMetadata(); | ||
| builder.hasSchemaVersion(); |
Member
There was a problem hiding this comment.
@Shawyeok - Why was this line necessary? It seems like it's not doing anything.
Contributor
Author
There was a problem hiding this comment.
Indeed, should I open a PR to remove this line?
michaeljmarshall
pushed a commit
that referenced
this pull request
Feb 24, 2022
codelipenghui
pushed a commit
that referenced
this pull request
Feb 25, 2022
nicoloboschi
pushed a commit
to nicoloboschi/pulsar
that referenced
this pull request
Mar 1, 2022
…pache#14317) If a message reached maxRedeliverCount, it will send to deadLetterTopic, since 2.8.0, this mechanism is broken, it was introduced in apache#9970
gaoran10
pushed a commit
that referenced
this pull request
Mar 1, 2022
Nicklee007
pushed a commit
to Nicklee007/pulsar
that referenced
this pull request
Apr 20, 2022
…pache#14317) If a message reached maxRedeliverCount, it will send to deadLetterTopic, since 2.8.0, this mechanism is broken, it was introduced in apache#9970
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Motivation
If a message reached maxRedeliverCount, it will send to deadLetterTopic, since
2.8.0, this mechanism is broken, it was introduced in #9970You can reproduce with code below:
It will log exception below:
Modifications
Make
AbstractSchema#atSchemaVersionthrow NPE only ifsupportSchemaVersioningis true and schemaVersion is null.Verifying this change
This change added tests and can be verified as follows:
Does this pull request potentially affect one of the following parts:
If
yeswas chosen, please highlight the changesDocumentation
Check the box below or label this PR directly (if you have committer privilege).
Need to update docs?
doc-required(If you need help on updating docs, create a doc issue)
no-need-docBugfix only
doc(If this PR contains doc changes)