You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@pulsar.apache.org by GitBox <gi...@apache.org> on 2021/04/13 22:11:54 UTC

[GitHub] [pulsar] merlimat commented on issue #10210: Schema: "IllegalReferenceCountException: refCnt: 0" while getting schema with AutoConsumeSchema

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:
users@infra.apache.org