merlimat commented on issue #10210:
URL: https://github.com/apache/pulsar/issues/10210#issuecomment-819086592


   I think the problem is that 
https://github.com/apache/pulsar/blob/c9c116767235491aca6f27ef7a07705666bbd647/pulsar-client/src/main/java/org/apache/pulsar/client/impl/ClientCnx.java#L879
 is getting called potentially in a different thread, when the `request` buffer 
is going to be already released.
   
   In particular, due to lazy initialization of fields, calling 
`commandGetSchemaResponse.getSchema()` will trigger to read from the original 
buffer, and it causes the above error when the buffer is already gone.
   
   


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

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


Reply via email to