Uploaded image for project: 'Calcite'
  1. Calcite
  2. CALCITE-934

Use ephemeral port for CalciteRemoteDriverTest

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Trivial
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 1.6.0
    • Component/s: core
    • Labels:
      None

      Description

      java.lang.RuntimeException: java.net.BindException: Address already in use
      	at sun.nio.ch.Net.bind0(Native Method)
      	at sun.nio.ch.Net.bind(Net.java:444)
      	at sun.nio.ch.Net.bind(Net.java:436)
      	at sun.nio.ch.ServerSocketChannelImpl.bind(ServerSocketChannelImpl.java:214)
      	at sun.nio.ch.ServerSocketAdaptor.bind(ServerSocketAdaptor.java:74)
      	at org.eclipse.jetty.server.ServerConnector.open(ServerConnector.java:321)
      	at org.eclipse.jetty.server.AbstractNetworkConnector.doStart(AbstractNetworkConnector.java:80)
      	at org.eclipse.jetty.server.ServerConnector.doStart(ServerConnector.java:236)
      	at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:68)
      	at org.eclipse.jetty.server.Server.doStart(Server.java:366)
      	at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:68)
      	at org.apache.calcite.avatica.server.HttpServer.start(HttpServer.java:65)
      	at org.apache.calcite.avatica.server.Main.start(Main.java:95)
      	at org.apache.calcite.avatica.server.Main.start(Main.java:68)
      	at org.apache.calcite.jdbc.CalciteRemoteDriverTest.beforeClass(CalciteRemoteDriverTest.java:155)
      

      If you have an instance of the Avatica server already running, CalciteRemoteDriverTest fails as above because it fails to bind port 8765.

        Activity

        Show
        elserj Josh Elser added a comment - Fixed in https://git1-us-west.apache.org/repos/asf?p=calcite.git;a=commit;h=1bbb6a2b97bf3da149c5f878b2d59ceafa737521
        Hide
        julianhyde Julian Hyde added a comment -

        Resolved in release 1.6.0 (2016-01-22).

        Show
        julianhyde Julian Hyde added a comment - Resolved in release 1.6.0 (2016-01-22).

          People

          • Assignee:
            elserj Josh Elser
            Reporter:
            elserj Josh Elser
          • Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development