Uploaded image for project: 'Hadoop Common'
  1. Hadoop Common
  2. HADOOP-8236

haadmin should have configurable timeouts for failover commands

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 0.23.3
    • Fix Version/s: 2.0.0-alpha
    • Component/s: ha
    • Labels:
      None

      Description

      The HAAdmin failover could should time out reasonably aggressively and go onto the fencing strategies if it's dealing with a mostly dead active namenode. Currently it uses what's probably the default, which is to say no timeout whatsoever.

        /**
         * Return a proxy to the specified target service.
         */
        protected HAServiceProtocol getProtocol(String serviceId)
            throws IOException {
          String serviceAddr = getServiceAddr(serviceId);
          InetSocketAddress addr = NetUtils.createSocketAddr(serviceAddr);
          return (HAServiceProtocol)RPC.getProxy(
                HAServiceProtocol.class, HAServiceProtocol.versionID,
                addr, getConf());
        }
      

        Attachments

        1. hadoop-8236.txt
          20 kB
          Todd Lipcon
        2. hadoop-8236.txt
          20 kB
          Todd Lipcon

          Issue Links

            Activity

              People

              • Assignee:
                tlipcon Todd Lipcon
                Reporter:
                philip Philip Zeyliger
              • Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: