[fix #472] move GetPartitionedTopicMetadata to lookup service #478
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Fixes #472
Motivation
#472 addressed a socket leakage in go client. with some debug works, a difference between java client and go client was found. one difference is go client send
PartitionedTopicMetadata
request with new connection, but java is using lookup service's connection. This pr addedGetPartitionedTopicMetadata
to lookup service to reuse the lookup service connection.Through this pr, the leakage has been resolved with this sample deployment, the sockets are keep to 7 for 2 hours test. But still need to check with @KannarFr to see if there are any other possible leakages since I cannot have a cluster with 20 proxies/20 brokers/7 ZK locally.
Verifying this change