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

HandleHTTPResponse processor exceptions when connection is closed

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Blocker
    • Resolution: Fixed
    • 0.6.1
    • None
    • Core Framework
    • None
    • Centos 6

    Description

      If a HTTP connection is closed before a response is sent, the HandleHTTPResponse processor will throw an exception, yield due to failure, then try processing the rest of the events. If multiple errors happen at once, this compounded delay can cause cascading issues as the other connections timeout and close.

      Instead, the exception should be caught and the flowfile should go to the error relationship. A closed connection should not fail the processor, but instead fail the flowfile.

      Exception:
      HandleHttpResponse[id=cca1576b-5841-3fc1-b05a-5fd0f4853cb7] failed to process session due to org.apache.nifi.processor.exception.FlowFileAccessException: Failed to export StandardFlowFileRecord[uuid=febaedb5-4830-46b7-b0f9-71b453a4743c,claim=StandardContentClaim [resourceClaim=StandardResourceClaim[id=1461688143223-3, container=contS2R1, section=3], offset=999718, length=999718],offset=0,name=1628795866820216,size=999718] to HttpOutput@28849fc

      {OPEN} due to org.eclipse.jetty.io.EofException: org.apache.nifi.processor.exception.FlowFileAccessException: Failed to export StandardFlowFileRecord[uuid=febaedb5-4830-46b7-b0f9-71b453a4743c,claim=StandardContentClaim [resourceClaim=StandardResourceClaim[id=1461688143223-3, container=contS2R1, section=3], offset=999718, length=999718],offset=0,name=1628795866820216,size=999718] to HttpOutput@28849fc{OPEN}

      due to org.eclipse.jetty.io.EofException

      Processor Administratively Yielded for 1 sec due to processing failure

      Attachments

        Issue Links

          Activity

            People

              pvillard Pierre Villard
              samhjelmfelt Sam Hjelmfelt
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: