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

[RestLookupService] add connect / readtimeout feature

    XMLWordPrintableJSON

    Details

    • Type: Improvement
    • Status: Resolved
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 1.9.2
    • Fix Version/s: 1.11.0
    • Component/s: Extensions
    • Labels:
      None

      Description

      When using the RestlookupService, I could not find a way to specify any timeout configuration, as we can do in InvokeHTTP.

       

      I wanted to use this lookup service in order to complete my record with datas given from external REST Service. But this service may takes time, almost 20 seconds.

       

      The LookupService fires an exception because of read timeout.

       

      I try to do a simple trick using InvokeHTTP, put the result in a DistributedMapCache and then try to use a LookupService to retrieve the returned record and inject it in the source. But does not work.

       

       

      So my only solution for now is to work with the Merge and then using JoltTransformation.

       

      Regards

       

      Etienne Jouvin

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                pvillard Pierre Villard
                Reporter:
                ejouvin Etienne Jouvin
              • 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 - 0.5h
                  0.5h