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 2020/02/13 03:31:55 UTC
[GitHub] [pulsar] ltamber opened a new issue #6319: [pulsar client]
partitioned topic cause connection leak when connection pool disable pooling
ltamber opened a new issue #6319: [pulsar client] partitioned topic cause connection leak when connection pool disable pooling
URL: https://github.com/apache/pulsar/issues/6319
**Describe the bug**
when use partitioned topic, the connection from client to discovery service will grow up and keep alive util application shut down.
**To Reproduce**
Steps to reproduce the behavior:
1. we used pulsar-perf, command is: ./bin/pulsar-perf consume -n 6 -c 0 -u pulsar://x.x.x.x:6660,x.x.x.x:6660 -s sub-1 -st Failover tenantTest/namespaceTest/partitiontopic2
2. then netstat -anp | grep 6660 | wc -l, the connection number will increasing slowly
**Expected behavior**
if we disable pooling, the connection should close when we done our lookup.
**Screenshots**

**Additional context**
there is a timer in partition topic client will autoUpdatePartitions, every getPartitionsForTopic will create a new connection and won't close it
----------------------------------------------------------------
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.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
With regards,
Apache Git Services
[GitHub] [pulsar] ltamber commented on issue #6319: [pulsar client]
partitioned topic cause connection leak when connection pool disable pooling
Posted by GitBox <gi...@apache.org>.
ltamber commented on issue #6319: [pulsar client] partitioned topic cause connection leak when connection pool disable pooling
URL: https://github.com/apache/pulsar/issues/6319#issuecomment-586143835
@sijie Yes, but don't have any good way to fix this
----------------------------------------------------------------
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.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
With regards,
Apache Git Services
[GitHub] [pulsar] ltamber edited a comment on issue #6319: [pulsar client]
partitioned topic cause connection leak when connection pool disable pooling
Posted by GitBox <gi...@apache.org>.
ltamber edited a comment on issue #6319: [pulsar client] partitioned topic cause connection leak when connection pool disable pooling
URL: https://github.com/apache/pulsar/issues/6319#issuecomment-586143835
@sijie Yes, but don't have any good way to fix this, Can you provide some ideas ? :)
----------------------------------------------------------------
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.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
With regards,
Apache Git Services
[GitHub] [pulsar] sijie commented on issue #6319: [pulsar client]
partitioned topic cause connection leak when connection pool disable pooling
Posted by GitBox <gi...@apache.org>.
sijie commented on issue #6319: [pulsar client] partitioned topic cause connection leak when connection pool disable pooling
URL: https://github.com/apache/pulsar/issues/6319#issuecomment-586056404
@ltamber are you interested in contributing a fix to this?
----------------------------------------------------------------
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.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
With regards,
Apache Git Services
[GitHub] [pulsar] ltamber commented on issue #6319: [pulsar client]
partitioned topic cause connection leak when connection pool disable pooling
Posted by GitBox <gi...@apache.org>.
ltamber commented on issue #6319: [pulsar client] partitioned topic cause connection leak when connection pool disable pooling
URL: https://github.com/apache/pulsar/issues/6319#issuecomment-585536579
@jiazhai @tuteng @wolfstudy PTAL
----------------------------------------------------------------
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.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
With regards,
Apache Git Services
[GitHub] [pulsar] jiazhai commented on issue #6319: [pulsar client]
partitioned topic cause connection leak when connection pool disable pooling
Posted by GitBox <gi...@apache.org>.
jiazhai commented on issue #6319: [pulsar client] partitioned topic cause connection leak when connection pool disable pooling
URL: https://github.com/apache/pulsar/issues/6319#issuecomment-593741528
@ltamber Thanks for the help. Seems it can be stable reproduce, and you are close the the root cause. Maybe we need to handle the release of disable-pooling connection in a different way.
In the `ConnectionPool`, (maxConnectionsPerHosts == 0) means a "disable pooling".
----------------------------------------------------------------
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.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
With regards,
Apache Git Services