mirror of https://github.com/apache/nifi.git
Merge branch 'NIFI-1676'
This commit is contained in:
commit
e4b7e47836
|
@ -1117,8 +1117,9 @@ public class StandardProcessorNode extends ProcessorNode implements Connectable
|
|||
|
||||
@Override
|
||||
public void verifyCanStart(final Set<ControllerServiceNode> ignoredReferences) {
|
||||
if (this.getScheduledState() == ScheduledState.RUNNING) {
|
||||
throw new IllegalStateException(this + " cannot be started because it is already running");
|
||||
final ScheduledState currentState = getPhysicalScheduledState();
|
||||
if (currentState != ScheduledState.STOPPED && currentState != ScheduledState.DISABLED) {
|
||||
throw new IllegalStateException(this + " cannot be started because it is not stopped. Current state is " + currentState.name());
|
||||
}
|
||||
|
||||
verifyNoActiveThreads();
|
||||
|
|
Loading…
Reference in New Issue