Uploaded image for project: 'Apache InLong'
  1. Apache InLong
  2. INLONG-316

Where the port the port is aleady used, the process throw the exception, but not exit;

    XMLWordPrintableJSON

Details

    Description

      When starting broker or master .If the port is aleady used, the process throw the exception, but not exit. It should be exit when the port has already been used;

      Here are the exceptions:

      [WARN] 2020-08-14 13:10:06,900 [log] failed SocketConnector@0.0.0.0:8081: java.net.BindException: Address already in use (Bind failed)
      [WARN] 2020-08-14 13:10:06,900 [log] failed Server@17baae6e: java.net.BindException: Address already in use (Bind failed)
      [WARN] 2020-08-14 13:10:06,901 [ZkOffsetStorage] Thread terminated with exception: main
      java.net.BindException: Address already in use (Bind failed)
      at java.net.PlainSocketImpl.socketBind(Native Method)
      at java.net.AbstractPlainSocketImpl.bind(AbstractPlainSocketImpl.java:387)
      at java.net.ServerSocket.bind(ServerSocket.java:375)
      at java.net.ServerSocket.<init>(ServerSocket.java:237)
      at java.net.ServerSocket.<init>(ServerSocket.java:181)
      at org.mortbay.jetty.bio.SocketConnector.newServerSocket(SocketConnector.java:80)
      at org.mortbay.jetty.bio.SocketConnector.open(SocketConnector.java:73)
      at org.mortbay.jetty.AbstractConnector.doStart(AbstractConnector.java:283)
      at org.mortbay.jetty.bio.SocketConnector.doStart(SocketConnector.java:147)
      at org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:50)
      at org.mortbay.jetty.Server.doStart(Server.java:235)
      at org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:50)
      at com.tencent.tubemq.server.broker.web.WebServer.start(WebServer.java:49)
      at com.tencent.tubemq.server.broker.TubeBroker.<init>(TubeBroker.java:136)
      at com.tencent.tubemq.server.tools.BrokerStartup.main(BrokerStartup.java:27)

      Attachments

        Activity

          People

            aloyszhang Aloys Zhang
            carylu carylu
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Time Tracking

                Estimated:
                Original Estimate - Not Specified
                Not Specified
                Remaining:
                Remaining Estimate - 0h
                0h
                Logged:
                Time Spent - 40m
                40m