Uploaded image for project: 'Hive'
  1. Hive
  2. HIVE-15671

RPCServer.registerClient() erroneously uses server/client handshake timeout for connection timeout

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 1.1.0
    • 2.3.0
    • Spark
    • None

    Description

        /**
         * Tells the RPC server to expect a connection from a new client.
         * ...
         */
        public Future<Rpc> registerClient(final String clientId, String secret,
            RpcDispatcher serverDispatcher) {
          return registerClient(clientId, secret, serverDispatcher, config.getServerConnectTimeoutMs());
        }
      

      config.getServerConnectTimeoutMs() returns value for hive.spark.client.server.connect.timeout, which is meant for timeout for handshake between Hive client and remote Spark driver. Instead, the timeout should be hive.spark.client.connect.timeout, which is for timeout for remote Spark driver in connecting back to Hive client.

      Attachments

        1. HIVE-15671.patch
          0.8 kB
          Xuefu Zhang
        2. HIVE-15671.1.patch
          0.7 kB
          Xuefu Zhang

        Issue Links

          Activity

            People

              xuefuz Xuefu Zhang
              xuefuz Xuefu Zhang
              Votes:
              0 Vote for this issue
              Watchers:
              7 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: