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

NiFi UI blocks on read access to FlowFile Queues

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • 2.0.0-M1, 1.21.0
    • Core Framework
    • None

    Description

      When the NiFi UI makes a request for a given Process Group or its status, the backend must obtain Read Locks on the FlowFile Queues in order to provide the information back to the UI.

      This results in a sluggish UI whenever there are a lot of queues with a lot of FlowFiles flowing. And in a case where we drop huge numbers of FlowFiles or add huge numbers of FlowFiles to queue (for instance, as a result of SplitJson) that lock can be held for quite a while, making the UI block arbitrarily long.

      The Read Locks, however, are not necessary for any of the requests that the UI makes for the canvas. They are necessary only for the Status History of the Connection/Queue. And for backward compatibility we should also make it available to Reporting Tasks.

      Attachments

        Issue Links

          Activity

            People

              markap14 Mark Payne
              markap14 Mark Payne
              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 - 20m
                  20m