lhotari opened a new pull request #13812:
URL: https://github.com/apache/pulsar/pull/13812


   ### Motivation
   
   - permits could be leaked if an exception happens
     - permits should be released in a try-finally block
   
   ### Modifications
   
   - use try-finally to release permits
   - refactor code 
     - reduce duplication
     - increase encapsulation (get rid of 
`this.service.getLookupRequestSemaphore()`)


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