[
https://issues.apache.org/jira/browse/SAMZA-932?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15245130#comment-15245130
]
Navina Ramesh commented on SAMZA-932:
-------------------------------------
Isn't a better solution to retry a different ephemeral port on Connection
error?
> JMX port collisions in JmxServer
> --------------------------------
>
> Key: SAMZA-932
> URL: https://issues.apache.org/jira/browse/SAMZA-932
> Project: Samza
> Issue Type: Bug
> Affects Versions: 0.10.1
> Reporter: Jake Maes
> Assignee: Tao Feng
> Labels: newbie
> Fix For: 0.10.1
>
>
> org.apache.samza.metrics.JmxServer gets an ephemeral port for the registry
> but does a simple +1 to get the server port. This seems to cause occasional
> port collisions and should be improved.
> Here's the offending line:
> val serverPort = registryPort + 1 // In comparison to the registry port. Tiny
> chance of collision. Sigh.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)