Uploaded image for project: 'Sentry (Retired)'
  1. Sentry (Retired)
  2. SENTRY-1018

HiveServer is not properly shutdown cause BindException in TestServerConfiguration

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • 1.7.0
    • None
    • None

    Description

      Error Message
      
      java.net.BindException: Address already in use
      Stacktrace
      
      org.apache.hive.service.ServiceException: java.net.BindException: Address already in use
      	at sun.nio.ch.Net.bind0(Native Method)
      	at sun.nio.ch.Net.bind(Net.java:414)
      	at sun.nio.ch.Net.bind(Net.java:406)
      	at sun.nio.ch.ServerSocketChannelImpl.bind(ServerSocketChannelImpl.java:214)
      	at sun.nio.ch.ServerSocketAdaptor.bind(ServerSocketAdaptor.java:74)
      	at org.eclipse.jetty.server.nio.SelectChannelConnector.open(SelectChannelConnector.java:173)
      	at org.eclipse.jetty.server.AbstractConnector.doStart(AbstractConnector.java:311)
      	at org.eclipse.jetty.server.nio.SelectChannelConnector.doStart(SelectChannelConnector.java:251)
      	at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:59)
      	at org.eclipse.jetty.server.Server.doStart(Server.java:272)
      	at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:59)
      	at org.apache.hive.http.HttpServer.start(HttpServer.java:185)
      	at org.apache.hive.service.server.HiveServer2.start(HiveServer2.java:433)
      	at org.apache.sentry.tests.e2e.hive.hiveserver.InternalHiveServer.start(InternalHiveServer.java:39)
      	at org.apache.sentry.tests.e2e.hive.AbstractTestWithHiveServer.createContext(AbstractTestWithHiveServer.java:65)
      	at org.apache.sentry.tests.e2e.hive.TestServerConfiguration.testDefaultDbRestrictivePrivilege(TestServerConfiguration.java:221)
      

      Attachments

        1. SENTRY-1018.0.patch
          4 kB
          Hao Hao
        2. SENTRY-1018.1.patch
          5 kB
          Hao Hao

        Issue Links

          Activity

            People

              hahao Hao Hao
              hahao Hao Hao
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: