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

Unable to remove port from a child ProcessGroup

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 1.12.0, 1.11.4
    • Component/s: Flow Versioning
    • Labels:
      None

      Description

      Given the following scenario:

      • Output port 1 in process group A
      • Input port 2 in process group B
      • A connection between A and B
      • Process group C is versioned and contains A and B

      Removing the connection as well as output port 1 and  then committing the version creates a flow version that cannot be upgraded to. (Try reverting to an older version, and back to this version). Throwing an IllegalStateException.

      I believe this is caused by the order of updates in "StandardProcessGroup.java" where child groups (line 3781) are updated prior to the connections of the group itself (line 3986). This causes the output port to be removed before the connection from it is removed. I haven't tested this but probably removing the input port causes similar issues.

       

        Attachments

        1. trace.log
          7 kB
          Wouter de Vries

          Issue Links

            Activity

              People

              • Assignee:
                markap14 Mark Payne
                Reporter:
                woutifier Wouter de Vries
              • Votes:
                0 Vote for this issue
                Watchers:
                1 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