markap14 commented on PR #7768:
URL: https://github.com/apache/nifi/pull/7768#issuecomment-1729654543

   Of note, in order to verify the fix, you can update the AbstractPort class 
such that the shutdown method sleeps before making the port as stopped:
   ```
       @Override
       public void shutdown() {
           try { Thread.sleep(5000L); } catch (final Exception e) {}
           
           scheduledState.set(ScheduledState.STOPPED);
           logger.info("{} shutdown", this);
       }
   
   ```
   This will cause the system test to fail consistently with the patch applied, 
as NiFi will attempt to update the group before the ports have stopped. Once 
applying the patch, NiFi will appropriately wait for the ports to stop before 
attempting to update the flow.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscr...@nifi.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org

Reply via email to