mirror of https://github.com/apache/nifi.git
NIFI-3914: Do not validate that remote group ports can start transmitting if there is no connection
This closes #1810. Signed-off-by: Aldrin Piri <aldrin@apache.org>
This commit is contained in:
parent
3a0004a665
commit
2f3ba57dd6
|
@ -1298,7 +1298,9 @@ public class StandardRemoteProcessGroup implements RemoteProcessGroup {
|
||||||
throw new IllegalStateException(this.getIdentifier() + " has a Connection to Port " + port.getIdentifier() + ", but that Port no longer exists on the remote system");
|
throw new IllegalStateException(this.getIdentifier() + " has a Connection to Port " + port.getIdentifier() + ", but that Port no longer exists on the remote system");
|
||||||
}
|
}
|
||||||
|
|
||||||
port.verifyCanStart();
|
if (port.hasIncomingConnection()) {
|
||||||
|
port.verifyCanStart();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
for (final StandardRemoteGroupPort port : outputPorts.values()) {
|
for (final StandardRemoteGroupPort port : outputPorts.values()) {
|
||||||
|
@ -1310,7 +1312,9 @@ public class StandardRemoteProcessGroup implements RemoteProcessGroup {
|
||||||
throw new IllegalStateException(this.getIdentifier() + " has a Connection to Port " + port.getIdentifier() + ", but that Port no longer exists on the remote system");
|
throw new IllegalStateException(this.getIdentifier() + " has a Connection to Port " + port.getIdentifier() + ", but that Port no longer exists on the remote system");
|
||||||
}
|
}
|
||||||
|
|
||||||
port.verifyCanStart();
|
if (!port.getConnections().isEmpty()) {
|
||||||
|
port.verifyCanStart();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
} finally {
|
} finally {
|
||||||
readLock.unlock();
|
readLock.unlock();
|
||||||
|
|
Loading…
Reference in New Issue