AnuragReddy2000 opened a new pull request, #23718:
URL: https://github.com/apache/pulsar/pull/23718

   Fixes #23704 
   
   ### Motivation
   
   We use the pulsar client to consume messages from a Pulsar broker in a Storm 
topology. Recently, we encountered an issue where the `deadLetterPolicy` that 
we set on the `PulsarSpout` seems to be lost when the topology is started. Upon 
investigation, we found that this is due to the `deadLetterPolicy` attribute in 
`ConsumerConfigurationData` being marked as transient. This prevents us from 
utilising the dead letter queue feature in our topology.
   
   ### Modifications
   
   Made DeadLetterPolicy, KeySharedPolicy and Range classes implement the 
java.io.Serializable interface and removed the transient keyword from the 
corresponding fields in the ConsumerConfigurationData class. In addition, two 
tests were also modified / updated.
   
   ### Verifying this change
   
   - [ ] Make sure that the change passes the CI checks.
   
   This change added tests and can be verified as follows:
   - Extended existing unit test for the ConsumerConfigurationData class to 
validate the retention of deadLetterPolicy through serialization & 
deserialization. 
   
   ### Does this pull request potentially affect one of the following parts:
   
   - [ ] Dependencies (add or upgrade a dependency)
   - [ ] The public API
   - [ ] The schema
   - [ ] The default values of configurations
   - [ ] The threading model
   - [ ] The binary protocol
   - [ ] The REST endpoints
   - [ ] The admin CLI options
   - [ ] The metrics
   - [ ] Anything that affects deployment
   
   ### Documentation
   
   - [ ] `doc` <!-- Your PR contains doc changes. -->
   - [ ] `doc-required` <!-- Your PR changes impact docs and you will update 
later -->
   - [X] `doc-not-needed` <!-- Your PR changes do not impact docs -->
   - [ ] `doc-complete` <!-- Docs have been already added -->
   
   ### Matching PR in forked repository
   
   PR in forked repository: https://github.com/AnuragReddy2000/pulsar/pull/1
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to