[ 
https://issues.apache.org/jira/browse/HADOOP-19881?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=18078763#comment-18078763
 ] 

ASF GitHub Bot commented on HADOOP-19881:
-----------------------------------------

pan3793 opened a new pull request, #8472:
URL: https://github.com/apache/hadoop/pull/8472

   <!--
     Thanks for sending a pull request!
       1. If this is your first time, please read our contributor guidelines: 
https://cwiki.apache.org/confluence/display/HADOOP/How+To+Contribute
       2. Make sure your PR title starts with JIRA issue id, e.g., 
'HADOOP-17799. Your PR title ...'.
   -->
   
   ### Description of PR
   
   1. `BindException` was not caught — main cause of the failure shown in the 
log.
     Netty's `ChannelFuture#sync()` uses `PlatformDependent.throwException` to 
"sneaky-throw" the original cause. When the OS returns "Address already in 
use", the cause is `java.net.BindException` (which extends `IOException`), not 
`ChannelException`. The original `catch (InterruptedException | 
ChannelException e)` missed it entirely, so the exception propagated out of the 
loop and failed the test on the first attempt - exactly matching the stack 
trace in the failure log.
   
   ```
   Error:  Tests run: 4, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 
1.224 s <<< FAILURE! 

> Fix "port in use" detection in TestFrameDecoder
> -----------------------------------------------
>
>                 Key: HADOOP-19881
>                 URL: https://issues.apache.org/jira/browse/HADOOP-19881
>             Project: Hadoop Common
>          Issue Type: Test
>            Reporter: Cheng Pan
>            Priority: Major
>




--
This message was sent by Atlassian Jira
(v8.20.10#820010)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to