NIFI-11681: Terminate Process Sessions before interrupting processor threads

This closes #7371

Signed-off-by: David Handermann <exceptionfactory@apache.org>
This commit is contained in:
Mark Payne 2023-06-12 16:55:41 -04:00 committed by exceptionfactory
parent 15f8f872f6
commit 787e0d8261
No known key found for this signature in database
GPG Key ID: 29B6A52D2AAE8DBA
1 changed files with 1 additions and 1 deletions

View File

@ -436,8 +436,8 @@ public final class StandardProcessScheduler implements ProcessScheduler {
LOG.debug("Terminating {}", procNode);
final int tasksTerminated = procNode.terminate();
state.terminate();
final int tasksTerminated = procNode.terminate();
getSchedulingAgent(procNode).incrementMaxThreadCount(tasksTerminated);