Uploaded image for project: 'Apache NiFi'
  1. Apache NiFi
  2. NIFI-7073

PutHDFS silently ignores exceptions when closing temporary file output stream

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • 1.12.0, 1.11.1
    • Extensions
    • None

    Description

      The PutHDFS processor can silently fail when closing an output stream when it's finished writing FlowFiles to a temporary space in HDFS. DFSOutputStream can throw an IOException when it's closed and that's ignored by the processor. This results in the FlowFile getting dropped (e.g. a loss of data) when it should be routed to the failure relationship.

      Source: https://github.com/apache/nifi/blob/master/nifi-nar-bundles/nifi-hadoop-bundle/nifi-hdfs-processors/src/main/java/org/apache/nifi/processors/hadoop/PutHDFS.java#L365

      Instead, the exception should be caught & thrown and the FlowFile should be routed to the failure relationship. There's probably an argument to avoid ignoring any exception.

      Attachments

        Issue Links

          Activity

            People

              mattyb149 Matt Burgess
              m-hogue Michael Hogue
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0h
                  0h
                  Logged:
                  Time Spent - 40m
                  40m