[
https://issues.apache.org/jira/browse/SENTRY-1731?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16001629#comment-16001629
]
Alexander Kolbasov commented on SENTRY-1731:
--------------------------------------------
The logic is rather broken - we should not allocate a port, then free it and
then create a server again with this port, but we should bind a socket to the
port and keep it and update client configs to use it. When you close a socket
the port may not be available right away.
This may be more invasive change though.
> java net BindException Address already in use
> ---------------------------------------------
>
> Key: SENTRY-1731
> URL: https://issues.apache.org/jira/browse/SENTRY-1731
> Project: Sentry
> Issue Type: Bug
> Components: Sentry
> Affects Versions: sentry-ha-redesign
> Reporter: Na Li
> Assignee: Na Li
> Attachments: Sentry-1687 Patch1 Test fail build 2570 Address already
> in use.zip
>
>
> this unit test fails often.
> java.net.BindException: Address already in use
--
This message was sent by Atlassian JIRA
(v6.3.15#6346)