mirror of https://github.com/apache/nifi.git
NIFI-838:
- Fixing bug when checking the state of a referencing component when attempting to disable a controller service. Only considering referencing components as RUNNING when the state is RUNNING or has active threads.
This commit is contained in:
parent
0a279ff538
commit
91f4dae060
|
@ -782,7 +782,7 @@ nf.ControllerService = (function () {
|
||||||
var stillRunning = false;
|
var stillRunning = false;
|
||||||
$.each(referencingComponents, function(_, referencingComponent) {
|
$.each(referencingComponents, function(_, referencingComponent) {
|
||||||
if (referencingComponent.referenceType === 'Processor' || referencingComponent.referenceType === 'ReportingTask') {
|
if (referencingComponent.referenceType === 'Processor' || referencingComponent.referenceType === 'ReportingTask') {
|
||||||
if (referencingComponent.state !== 'STOPPED' || referencingComponent.activeThreadCount > 0) {
|
if (referencingComponent.state === 'RUNNING' || referencingComponent.activeThreadCount > 0) {
|
||||||
stillRunning = true;
|
stillRunning = true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue