merlimat opened a new pull request #2316: Fixed refcounting when processing 
entries from sql
URL: https://github.com/apache/incubator-pulsar/pull/2316
 
 
   ### Motivation
   
   There were 2 issues with ref-count when parsing entries from SQL connector: 
   
    1. `entry.getData().length` is actually releasing the buffer after the 
invocation, so `entry.getDataBuffer()` was getting invalid buffer.
    2. `uncompressedPayload.release()` needs to be only invoked once, in the 
`finally` block

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
[email protected]


With regards,
Apache Git Services

Reply via email to