Skip to content

Why is deadLetterPolicy attribute in the ConsumerConfigurationData class marked as transient? #23076

Answered by lhotari
AnuragReddy2000 asked this question in Q&A
Discussion options

You must be logged in to vote

@AnuragReddy2000 Thanks for investigating this issue. It would be useful to first create an issue in https://github.com/apache/pulsar/issues about the problem that you are facing with the pulsar-storm adaptor when the deadLetterPolicy gets lost.

I don't see a reason why field deadLetterPolicy should be transient. In the referenced PR #9630, the correct resolution would have been to make DeadLetterPolicy class implement java.io.Serializable and add private static final long serialVersionUID = 1L; field instead of making it a transient field. It looks like there are multiple other problems in the PR and deadLetterPolicy isn't the only issue. The same issue applies to keySharedPolicy and mes…

Replies: 3 comments 2 replies

Comment options

You must be logged in to vote
2 replies
@lhotari
Comment options

lhotari Dec 10, 2024
Collaborator

Answer selected by AnuragReddy2000
@AnuragReddy2000
Comment options

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants