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

Support batch update in Notify processor

    Details

    • Type: Improvement
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 1.2.0
    • Fix Version/s: 1.2.0
    • Component/s: Extensions
    • Labels:
      None

      Description

      NIFI-3216 added ability to wait for N signals. It supports waiting for N fragments split by SplitXXXX processors. However, since Notify processor has to increase count one by one by calling expensive replace cache operation over network, it doesn't provide a practical performance when user configured a flow looks like below as N glow:

      Split
       --> (original) -> Wait for N
       --> (split) -> Do something -> Notify 1
      

      This JIRA improves Notify processor by:

      • Add "Signal Buffer Count" to specify max number of flow files that can be buffered and update cache at once
      • Add "Signal Counter Delta" to specify delta grater than 1, EL supported

      "Signal Buffer Count" would be useful in a flow like this:

      Split
       --> (original) -> Wait for N
       --> (split) -> Filter or something -> Notify M
      

      Buffer incoming M flow files and perform cache replace operation once.

      So does "Signal Counter Delta":

      Split
       --> (original) -> Wait for N
       --> (split) -> Filter or something -> Merge M -> PutXXX -> Notify M
      

      Specify 'M' via Attribute Expression Language.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                ijokarumawak Koji Kawamura
                Reporter:
                ijokarumawak Koji Kawamura
              • Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: