Technoboy- opened a new pull request, #16809:
URL: https://github.com/apache/pulsar/pull/16809

   Fixes #16710
   
   Master Issue: #16710
   
   ### Motivation
   
   When the partition updates, the internal consumer may not connect to the 
broker(you can see `onPartitionsChange ` is before `startReceivingMessages`), 
so `unsubscribe` will throw the exception.
   
https://github.com/apache/pulsar/blob/bdd87794a0ad6a775a911e9cb27cf6fbaf02d9e8/pulsar-client/src/main/java/org/apache/pulsar/client/impl/MultiTopicsConsumerImpl.java#L1415-L1425
   
   PartitionedProducerConsumerTest#testPartitionedTopicInterceptor tests for 
updating the partition, another way to fix is that deleting 
`consumer.unsubscribe()` at line 1029.
   
   ### Documentation
   
   - [x] `doc-not-needed` 
   (Please explain why)
   


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