merlimat opened a new pull request #12103:
URL: https://github.com/apache/pulsar/pull/12103


   ### Motivation
   
   After a write failure, a task is scheduled in background to force close the 
ledger and trigger the creation of a new one. If the the `OpAddEntry` instance 
is already recycled, that could lead to either a NPE or undefined behavior.
   
   ### Modifications
   
   Copy the reference to a final variable so the background task will not be 
dependent on the lifecycle of `OpAddEntry` instance.


-- 
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: commits-unsubscr...@pulsar.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


Reply via email to