BewareMyPower commented on PR #24832:
URL: https://github.com/apache/pulsar/pull/24832#issuecomment-3385389184

   > I'm still concerned that asynchronous handling may lead to accessing 
variables after cmd have been cleared (for example, in the interceptor).
   
   Do you mean `cmd` is published to a different thread? If so, we should not 
do that. In the interceptor case, the interceptor should be responsible to make 
a deep copy on `cmd`. A better approach is to copy necessary fields to a new 
object.
   
   BTW, I checked the code in Pulsar that `cmd` is never accessed out of the 
`channelRead` method. Please correct me if I'm wrong.


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