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

Chia-Ping Tsai commented on HBASE-18996:
----------------------------------------

I run all tests which are in hbase-thrift concurrently. The BindException 
happens.
{code}
[INFO] -------------------------------------------------------
[INFO]  T E S T S
[INFO] -------------------------------------------------------
[INFO] Running org.apache.hadoop.hbase.thrift2.TestThriftHBaseServiceHandler
[INFO] Running org.apache.hadoop.hbase.thrift.TestCallQueue
[INFO] Running org.apache.hadoop.hbase.thrift.TestThriftHttpServer
[INFO] Running 
org.apache.hadoop.hbase.thrift2.TestThriftHBaseServiceHandlerWithLabels
[INFO] Tests run: 18, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 1.809 s 
- in org.apache.hadoop.hbase.thrift.TestCallQueue
[INFO] Running org.apache.hadoop.hbase.thrift.TestThriftServerCmdLine
[INFO] Tests run: 6, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 19.456 s 
- in org.apache.hadoop.hbase.thrift2.TestThriftHBaseServiceHandlerWithLabels
[INFO] Running org.apache.hadoop.hbase.thrift.TestThriftServer
[INFO] Tests run: 2, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 20.768 s 
- in org.apache.hadoop.hbase.thrift.TestThriftHttpServer
[INFO] Tests run: 22, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 48.911 
s - in org.apache.hadoop.hbase.thrift2.TestThriftHBaseServiceHandler
[ERROR] Tests run: 32, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 74.454 
s <<< FAILURE! - in org.apache.hadoop.hbase.thrift.TestThriftServerCmdLine
[ERROR] 
testRunThriftServer[0](org.apache.hadoop.hbase.thrift.TestThriftServerCmdLine)  
Time elapsed: 10.039 s  <<< ERROR!
java.lang.NullPointerException
        at 
org.apache.hadoop.hbase.thrift.TestThriftServerCmdLine.testRunThriftServer(TestThriftServerCmdLine.java:186)

[INFO] Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 92.142 s 
- in org.apache.hadoop.hbase.thrift.TestThriftServer
{code}
{code}
2017-11-06 03:19:09,897 INFO  [ThriftServer-cmdline] http.HttpServer(1029): 
HttpServer.start() threw a non Bind IOException
java.net.BindException: Port in use: 0.0.0.0:9095
        at 
org.apache.hadoop.hbase.http.HttpServer.openListeners(HttpServer.java:1091)
        at org.apache.hadoop.hbase.http.HttpServer.start(HttpServer.java:1026)
        at org.apache.hadoop.hbase.http.InfoServer.start(InfoServer.java:100)
        at 
org.apache.hadoop.hbase.thrift.ThriftServer.doMain(ThriftServer.java:104)
        at 
org.apache.hadoop.hbase.thrift.TestThriftServerCmdLine$1.run(TestThriftServerCmdLine.java:140)
        at java.lang.Thread.run(Thread.java:748)
Caused by: java.net.BindException: Address already in use
        at sun.nio.ch.Net.bind0(Native Method)
        at sun.nio.ch.Net.bind(Net.java:433)
        at sun.nio.ch.Net.bind(Net.java:425)
        at 
sun.nio.ch.ServerSocketChannelImpl.bind(ServerSocketChannelImpl.java:223)
        at sun.nio.ch.ServerSocketAdaptor.bind(ServerSocketAdaptor.java:74)
        at 
org.mortbay.jetty.nio.SelectChannelConnector.open(SelectChannelConnector.java:216)
        at 
org.apache.hadoop.hbase.http.HttpServer.openListeners(HttpServer.java:1085)
        ... 5 more
{code}

I run the same tests with this patch. The error doesn't happen. +1.


> Backport HBASE-17703 (TestThriftServerCmdLine is flaky in master branch) to 
> branch-1
> ------------------------------------------------------------------------------------
>
>                 Key: HBASE-18996
>                 URL: https://issues.apache.org/jira/browse/HBASE-18996
>             Project: HBase
>          Issue Type: Task
>          Components: Thrift
>    Affects Versions: 1.3.2, 1.4.1, 1.5.0, 1.2.7, 1.1.13
>            Reporter: Peter Somogyi
>            Assignee: Peter Somogyi
>         Attachments: HBASE-18996.branch-1.001.patch, 
> HBASE-18996.branch-1.001.patch, HBASE-18996.branch-1.001.patch
>
>
> During HBASE-18967 backport to branch-1.3 a test failure came up which was 
> fixed in HBASE-17703.
> We need to backport it to branch-1. 



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)

Reply via email to