mattisonchao opened a new pull request #14017:
URL: https://github.com/apache/pulsar/pull/14017


   ### Motivation
   
   ``ReplicatedSubscriptionsController`` send marker message will cause NPE 
when enable deduplicated.
   
   The stacktrace here.
   ```java
   java.lang.NullPointerException: null
        at 
org.apache.pulsar.broker.service.persistent.MessageDeduplication.isDuplicate(MessageDeduplication.java:317)
 ~[classes/:?]
        at 
org.apache.pulsar.broker.service.persistent.PersistentTopic.publishMessage(PersistentTopic.java:413)
 ~[classes/:?]
        at 
org.apache.pulsar.broker.service.persistent.ReplicatedSubscriptionsController.writeMarker(ReplicatedSubscriptionsController.java:272)
 ~[classes/:?]
        at 
org.apache.pulsar.broker.service.persistent.ReplicatedSubscriptionsSnapshotBuilder.start(ReplicatedSubscriptionsSnapshotBuilder.java:83)
 ~[classes/:?]
        at ...
   ```
   
   ### Modifications
   
   - Marker messages don't need to be deduplicated.
   
   ### Verifying this change
   
   - [x] Make sure that the change passes the CI checks.
   
   ### Documentation
   
   Check the box below or label this PR directly (if you have committer 
privilege).
   
   Need to update docs? 
   
   - [x] `no-need-doc` 
   
   
   


-- 
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