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

Improve HandleHttpResponse processing of Runtime Exceptions

    XMLWordPrintableJSON

Details

    Description

      When catching a ProcessException while trying to export Flow File contents to an HTTP output stream, the HandleHttpResponse Processor will attempt to call HttpContextMap.complete() in order to finish processing the HTTP transaction.  If the HTTP Context Identifier is no longer present in the HttpContextMap or if the HTTP client associated with the transaction has already terminated the connection, HttpContextMap.complete() will throw an IllegalStateException or some other type of RuntimeException.  When this occurs, HandleHttpResponse falls back to administratively yielding and does not route the Flow File to the failure relationship.  The end result is that Flow Files associated with closed HTTP connections remain queued.

      The other call to HttpContextMap.complete() already handles an IllegalStateException so both calls should be handled in the same way to avoid leaving files in the queue.

      Attachments

        Issue Links

          Activity

            People

              exceptionfactory David Handermann
              exceptionfactory David Handermann
              Votes:
              0 Vote for this issue
              Watchers:
              2 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 - 1h 40m
                  1h 40m