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

HDFS Client write acknowledgement timeout should not depend on read timeout



    • Bug
    • Status: Open
    • Major
    • Resolution: Unresolved
    • 2.8.0, 3.0.0-alpha1
    • None
    • datanode, hdfs-client
    • None
    • CDH5.7.0 and above + Cloudera Manager. HBase Region Server.


      HDFS-8311 added a timeout for client write acknowledgement for both

      1. transferring blocks
      2. writing to a DataNode.

      The timeout shares the same configuration as client read timeout (dfs.client.socket-timeout).

      While I agree having a timeout is good, it does not make sense for the write acknowledgement timeout to depend on read timeout. We saw a case where cluster admin wants to reduce HBase RegionServer read timeout so as to detect DataNode crash quickly, but did not realize it affects write acknowledgement timeout.

      In the end, the effective DataNode write timeout is shorter than the effective client write acknowledgement timeout. If the last two DataNodes in the write pipeline crashes, client would think the first DataNode is faulty (the DN appears unresponsive because it is still waiting for the ack from downstream DNs), dropping it and then HBase RS would crash because it is unable to write to any good DataNode. This scenario is possible during a rack failure.

      This problem is even worse for Cloudera Manager-managed cluster. By default, CM-managed HBase RegionServer sets dfs.client.block.write.replace-datanode-on-failure.enable = false. Even one unresponsive DataNode could crash HBase RegionServer.

      I am raising this Jira to discuss two possible solutions

      1. add a new config for write acknowledgement timeout. Do not depend on read timeout
      2. or, update the description of dfs.client.socket-timeout in core-default.xml so that admin is aware write acknowledgement timeout depends on this configuration.


        1. HDFS-13103.001.patch
          7 kB
          Wei-Chiu Chuang

        Issue Links



              weichiu Wei-Chiu Chuang
              weichiu Wei-Chiu Chuang
              0 Vote for this issue
              15 Start watching this issue