drill-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "ASF GitHub Bot (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (DRILL-6198) OpenTSDB unit tests fail when Lilith client is run
Date Thu, 01 Mar 2018 13:11:00 GMT

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

ASF GitHub Bot commented on DRILL-6198:
---------------------------------------

GitHub user vvysotskyi opened a pull request:

    https://github.com/apache/drill/pull/1142

    DRILL-6198: OpenTSDB unit tests fail when Lilith client is run

    Added method which checks that the default port 10_000 is free, otherwise this method
increases port number and checks until free port is found.

You can merge this pull request into a Git repository by running:

    $ git pull https://github.com/vvysotskyi/drill DRILL-6198

Alternatively you can review and apply these changes as the patch at:

    https://github.com/apache/drill/pull/1142.patch

To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:

    This closes #1142
    
----
commit 671d3e0d900c19f561cb3d0f744898c0f9bf20e9
Author: Volodymyr Vysotskyi <vvovyk@...>
Date:   2018-03-01T12:52:28Z

    DRILL-6198: OpenTSDB unit tests fail when Lilith client is run

----


> OpenTSDB unit tests fail when Lilith client is run
> --------------------------------------------------
>
>                 Key: DRILL-6198
>                 URL: https://issues.apache.org/jira/browse/DRILL-6198
>             Project: Apache Drill
>          Issue Type: Bug
>          Components: Tools, Build &amp; Test
>            Reporter: Volodymyr Vysotskyi
>            Priority: Minor
>
> When OpenTSDB unit testsĀ are running on the same machine where Lilith client is run,
unit tests fail with the error:
> {noformat}
> testDescribe(org.apache.drill.store.openTSDB.TestOpenTSDBPlugin)  Time elapsed: 0.01
sec  <<< ERROR!
> com.github.tomakehurst.wiremock.common.FatalStartupException: java.lang.RuntimeException:
java.net.BindException: Address already in use
>         at com.github.tomakehurst.wiremock.WireMockServer.start(WireMockServer.java:145)
>         at com.github.tomakehurst.wiremock.junit.WireMockRule$1.evaluate(WireMockRule.java:68)
>         at org.junit.internal.runners.statements.FailOnTimeout$StatementThread.run(FailOnTimeout.java:74)
> Caused by: java.lang.RuntimeException: java.net.BindException: Address already in use
>         at com.github.tomakehurst.wiremock.jetty9.JettyHttpServer.start(JettyHttpServer.java:132)
>         at com.github.tomakehurst.wiremock.WireMockServer.start(WireMockServer.java:143)
>         at com.github.tomakehurst.wiremock.junit.WireMockRule$1.evaluate(WireMockRule.java:68)
>         at org.junit.internal.runners.statements.FailOnTimeout$StatementThread.run(FailOnTimeout.java:74)
> 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 wiremock.org.eclipse.jetty.server.ServerConnector.open(ServerConnector.java:321)
>         at wiremock.org.eclipse.jetty.server.AbstractNetworkConnector.doStart(AbstractNetworkConnector.java:80)
>         at wiremock.org.eclipse.jetty.server.ServerConnector.doStart(ServerConnector.java:236)
>         at wiremock.org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:68)
>         at wiremock.org.eclipse.jetty.server.Server.doStart(Server.java:366)
>         at wiremock.org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:68)
>         at com.github.tomakehurst.wiremock.jetty9.JettyHttpServer.start(JettyHttpServer.java:130)
>         at com.github.tomakehurst.wiremock.WireMockServer.start(WireMockServer.java:143)
>         at com.github.tomakehurst.wiremock.junit.WireMockRule$1.evaluate(WireMockRule.java:68)
>         at org.junit.internal.runners.statements.FailOnTimeout$StatementThread.run(FailOnTimeout.java:74)
> {noformat}
> This failure appears because of Lilith uses the same port 10000 as the port, specified
in {{TestOpenTSDBPlugin.wireMockRule}} and {{bootstrap-storage-plugins.json}}.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

Mime
View raw message