[
https://issues.apache.org/jira/browse/HBASE-20543?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16468676#comment-16468676
]
Hudson commented on HBASE-20543:
--------------------------------
Results for branch branch-2
[build #713 on
builds.a.o|https://builds.apache.org/job/HBase%20Nightly/job/branch-2/713/]:
(x) *{color:red}-1 overall{color}*
----
details (if available):
(/) {color:green}+1 general checks{color}
-- For more information [see general
report|https://builds.apache.org/job/HBase%20Nightly/job/branch-2/713//General_Nightly_Build_Report/]
(/) {color:green}+1 jdk8 hadoop2 checks{color}
-- For more information [see jdk8 (hadoop2)
report|https://builds.apache.org/job/HBase%20Nightly/job/branch-2/713//JDK8_Nightly_Build_Report_(Hadoop2)/]
(x) {color:red}-1 jdk8 hadoop3 checks{color}
-- For more information [see jdk8 (hadoop3)
report|https://builds.apache.org/job/HBase%20Nightly/job/branch-2/713//JDK8_Nightly_Build_Report_(Hadoop3)/]
(/) {color:green}+1 source release artifact{color}
-- See build output for details.
> Fix the flaky TestThriftHttpServer
> ----------------------------------
>
> Key: HBASE-20543
> URL: https://issues.apache.org/jira/browse/HBASE-20543
> Project: HBase
> Issue Type: Bug
> Affects Versions: 3.0.0
> Reporter: Zheng Hu
> Assignee: Zheng Hu
> Priority: Major
> Fix For: 3.0.0
>
> Attachments: HBASE-20543.v1.patch
>
>
> The runThriftServer() in TestThriftHttpServer, we have the following :
> {code}
> private void runThriftServer(int customHeaderSize) throws Exception {
> //......
> startHttpServerThread(args.toArray(new String[args.size()]));
> // wait up to 10s for the server to start
> for (int i = 0; i < 100
> && (thriftServer.serverRunner == null ||
> thriftServer.serverRunner.httpServer ==
> null); i++) {
> Thread.sleep(100);
> }
> //......
> checkHttpMethods(url);
> //......
> }
> {code}
> The port may still not open even if the thriftServer.serverRunner != null
> and thriftServer.serverRunner.httpServer != null, so the checkHttpMethods
> will get a connection refused ...
> We should wait till the port is really listening....
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)