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

createRemoteProcessGroupDto in DtoFactory.java does not count inactive remote ports correctly

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Trivial
    • Resolution: Fixed
    • 0.0.2
    • 0.1.0
    • Core UI
    • None

    Description

      createRemoteProcessGroupDto in Dtofactory.java does not increase the inactiveRemoteOutputPortCount

      Dtofactory.java
              int activeRemoteOutputPortCount = 0;
              int inactiveRemoteOutputPortCount = 0; //not updated
              for (final Port port : group.getOutputPorts()) {
                  outputPorts.add(createRemoteProcessGroupPortDto((RemoteGroupPort) port));
      
                  if (!port.getConnections().isEmpty()) {
                      if (port.isRunning()) {
                          activeRemoteOutputPortCount++;
                      } else {
                          //should be inactive like the code for incoming connections.
                          activeRemoteOutputPortCount++;
                      }
                  }
              }
      

      Attachments

        1. 0143-Increase-inactive-rather-than-active-counter-where-p.patch
          1 kB
          Mark Latimer
        2. 530.diff
          2 kB
          Mark Latimer

        Activity

          People

            mcgilman Matt Gilman
            MarkLat Mark Latimer
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: