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 2022/04/14 03:13:37 UTC

[GitHub] [pulsar] freeznet opened a new issue, #15166: Reader resource leakage in TableView

freeznet opened a new issue, #15166:
URL: https://github.com/apache/pulsar/issues/15166

   **Describe the bug**
   When set `autoUpdatePartitionsInterval` to a small value like 1 second in `TableViewBuilder`, the table view client will keep create new reader (consumer) in each interval and causing resource leaks. 
   
   The main reason is the TableViewImpl is not cache existing reader, see https://github.com/apache/pulsar/blob/04aa9e8e51869d1621a7e25402a656084eebfc09/pulsar-client/src/main/java/org/apache/pulsar/client/impl/TableViewImpl.java#L77-L81
   
   **To Reproduce**
   Steps to reproduce the behavior:
   use pulsar 2.10.0, create TableView client with a small `autoUpdatePartitionsInterval`, and you will see the consumers are created in each loop from the logs.
   


-- 
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-unsubscribe@pulsar.apache.org.apache.org

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


[GitHub] [pulsar] nlu90 commented on issue #15166: Reader resource leakage in TableView

Posted by GitBox <gi...@apache.org>.
nlu90 commented on issue #15166:
URL: https://github.com/apache/pulsar/issues/15166#issuecomment-1098666890

   I will create a PR for the fix


-- 
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-unsubscribe@pulsar.apache.org

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


[GitHub] [pulsar] Technoboy- closed issue #15166: Reader resource leakage in TableView

Posted by GitBox <gi...@apache.org>.
Technoboy- closed issue #15166: Reader resource leakage in TableView
URL: https://github.com/apache/pulsar/issues/15166


-- 
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-unsubscribe@pulsar.apache.org

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