Uploaded image for project: 'Apache Drill'
  1. Apache Drill
  2. DRILL-6198

OpenTSDB unit tests fail when Lilith client is run

    Details

      Description

      When OpenTSDB unit testsĀ are running on the same machine where Lilith client is run, unit tests fail with the error:

      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)
      

      This failure appears because of Lilith uses the same port 10000 as the port, specified in TestOpenTSDBPlugin.wireMockRule and bootstrap-storage-plugins.json.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                vvysotskyi Volodymyr Vysotskyi
                Reporter:
                vvysotskyi Volodymyr Vysotskyi
                Reviewer:
                Arina Ielchiieva
              • Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: