liudezhi2098 commented on pull request #13939:
URL: https://github.com/apache/pulsar/pull/13939#issuecomment-1021912776


   This maybe will not cause memory leak,  it's not a periodic task. constantly 
creating and shutting down consumers can lead to this problem.
   ```
   ledger.getScheduledExecutor()
                           .schedule(() -> checkForNewEntries(op, callback, 
ctx),
                                   config.getNewEntriesCheckDelayInMillis(), 
TimeUnit.MILLISECONDS);
   ```


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