nicoloboschi commented on PR #18898:
URL: https://github.com/apache/pulsar/pull/18898#issuecomment-1349581801

   > @nicoloboschi - I support this change, but I think it needs a little more 
work.
   > 
   > This code is relevant:
   > 
   > 
https://github.com/apache/pulsar/blob/5b062f37bd6688c09384abbe908f7c14e28052fc/pulsar-broker/src/main/java/org/apache/pulsar/broker/service/Producer.java#L785-L791
   > 
   > It is used here and in the non-partitioned topic:
   > 
   > 
https://github.com/apache/pulsar/blob/5b062f37bd6688c09384abbe908f7c14e28052fc/pulsar-broker/src/main/java/org/apache/pulsar/broker/service/persistent/PersistentTopic.java#L2642
   > 
   > If I am reading the code correctly, without updating the 
`Producer#checkEncryption` method, an update to a namespace policy will result 
in an unnecessary disconnection for producers to system topics when encryption 
becomes required for a namespace.
   
   
   I've implemented isEncryptionRequired to always return false so the 
disconnection is never triggered. or maybe I didn't get your comments 🤔 
   
   


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