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

Michael Stack commented on HBASE-24294:
---------------------------------------

Turns out two ways to launch ThriftServer, one in the TestThrift commandline 
set of tests and then another in the TestThrift http set of tests. The http 
sets aren't covered by the TestThriftBindException test... it only checks the 
commandline set of tests.

Let me refactor so one way of getting a ThriftServer up, one that can tolerate 
running into a BindException.

> [Flakey Tests] TestThriftHttpServer BindException
> -------------------------------------------------
>
>                 Key: HBASE-24294
>                 URL: https://issues.apache.org/jira/browse/HBASE-24294
>             Project: HBase
>          Issue Type: Bug
>            Reporter: Michael Stack
>            Priority: Major
>
> Came across this last night:
> {code}
> Expected: (an instance of org.apache.thrift.transport.TTransportException and 
> exception with message a string containing "HTTP Response code: 431")
>      but: an instance of org.apache.thrift.transport.TTransportException 
> <java.lang.Exception: java.net.BindException: Address already in use> is a 
> java.lang.Exception
> Stacktrace was: java.lang.Exception: java.net.BindException: Address already 
> in use
>       at 
> org.apache.hadoop.hbase.thrift.TestThriftHttpServer.stopHttpServerThread(TestThriftHttpServer.java:253)
>       at 
> org.apache.hadoop.hbase.thrift.TestThriftHttpServer.runThriftServer(TestThriftHttpServer.java:183)
>       at 
> org.apache.hadoop.hbase.thrift.TestThriftHttpServer.testRunThriftServerWithHeaderBufferLength(TestThriftHttpServer.java:147)
> {code}



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

Reply via email to