Uploaded image for project: 'Hadoop HDFS'
  1. Hadoop HDFS
  2. HDFS-11153

RPC Client detect address changed should reconnect immediately

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Open
    • Priority: Major
    • Resolution: Unresolved
    • Affects Version/s: 3.0.0-alpha1
    • Fix Version/s: None
    • Component/s: ipc
    • Labels:
      None

      Description

      HA mode,the "ipc.client.connect.max.retries.on.timeouts" and "ipc.client.connect.max.retries" is set zero,but if met active NN's ip changed,it will detect the change,but won't reconnect because exceed the max retry times,after do 15 times failover and then throw connection or standby exception.
      maybe if found the address is changed,should reconnect immediately no matter the retry times limit.


      log is below:

      2016-11-16 17:00:20,844 (WARN org.apache.hadoop.ipc.Client 510): Address change detected. Old: *****:9000 New: XXXXX:9000
      2016-11-16 17:01:09,893 (WARN org.apache.hadoop.ipc.Client 510): Address change detected. Old: *****::9000 New: XXXXX:9000
      2016-11-16 17:01:09,893 (WARN org.apache.hadoop.io.retry.RetryInvocationHandler 118): Exception while invoking class org.apache.hadoop.hdfs.protocolPB.ClientNamenodeProtocolTranslatorPB.getFileInfo. Not retrying because failovers (15) exceeded maximum allowed (15)
      

        Attachments

        1. HDFS-1153.001.patch
          5 kB
          DENG FEI
        2. stupid.png
          370 kB
          DENG FEI

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              Deng FEI DENG FEI
            • Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

              • Created:
                Updated: