Hadoop HDFS
  1. Hadoop HDFS
  2. HDFS-931

DFSClient.close doesn't rethrow exceptions thrown by automatically closed clients

    Details

    • Type: Bug Bug
    • Status: Open
    • Priority: Critical Critical
    • Resolution: Unresolved
    • Affects Version/s: 0.21.0, 0.22.0
    • Fix Version/s: None
    • Component/s: hdfs-client
    • Labels:
      None
    • Hadoop Flags:
      Incompatible change

      Description

      I've written a fault injection test that simply throws exceptions on every ack.readFields call in ResponseProcessor. This ought to raise an exception to the client trying to use the stream, but instead it ignores it silently.

      1. TEST-org.apache.hadoop.hdfs.TestFiPipelines.txt
        83 kB
        Todd Lipcon
      2. hdfs-931.txt
        5 kB
        Todd Lipcon
      3. hdfs-931.txt
        4 kB
        Todd Lipcon

        Activity

        Todd Lipcon created issue -
        Todd Lipcon made changes -
        Field Original Value New Value
        Attachment TEST-org.apache.hadoop.hdfs.TestFiPipelines.txt [ 12431742 ]
        Attachment hdfs-931.txt [ 12431743 ]
        Todd Lipcon made changes -
        Assignee Todd Lipcon [ tlipcon ]
        Todd Lipcon made changes -
        Summary Failing DFSOutputStream does not throw exception back to client DFSClient.close doesn't rethrow exceptions thrown by automatically closed clients
        Affects Version/s 0.20.1 [ 12314048 ]
        Priority Blocker [ 1 ] Critical [ 2 ]
        Todd Lipcon made changes -
        Attachment hdfs-931.txt [ 12431749 ]
        Todd Lipcon made changes -
        Status Open [ 1 ] Patch Available [ 10002 ]
        Todd Lipcon made changes -
        Status Patch Available [ 10002 ] Open [ 1 ]
        Affects Version/s 0.20.1 [ 12314048 ]
        Tsz Wo Nicholas Sze made changes -
        Hadoop Flags [Incompatible change]

          People

          • Assignee:
            Todd Lipcon
            Reporter:
            Todd Lipcon
          • Votes:
            0 Vote for this issue
            Watchers:
            8 Start watching this issue

            Dates

            • Created:
              Updated:

              Development