[ 
https://issues.apache.org/jira/browse/SENTRY-1731?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Na Li updated SENTRY-1731:
--------------------------
    Attachment: Sentry-1687 Patch1 Test fail build 2570 Address already in 
use.zip

This issue is not specific to HA. Attached file "Sentry-1687 Patch1 Test fail 
build 2570 Address already in use.zip" is one example of the failure. 

I suspect it is due to the fact that we find a free port in 
SentryService.findFreePo() (open socket with port number 0, get its actual port 
number and then close it), and set it to be RPC port in ServerConfig. If that 
port was used by other socket, and before RPC socket actually uses this port, 
such exception will happen. 

> 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)

Reply via email to