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,8 +1298,10 @@ 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");
|
||||
}
|
||||
|
||||
if (port.hasIncomingConnection()) {
|
||||
port.verifyCanStart();
|
||||
}
|
||||
}
|
||||
|
||||
for (final StandardRemoteGroupPort port : outputPorts.values()) {
|
||||
if (port.isRunning()) {
|
||||
|
@ -1310,8 +1312,10 @@ 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");
|
||||
}
|
||||
|
||||
if (!port.getConnections().isEmpty()) {
|
||||
port.verifyCanStart();
|
||||
}
|
||||
}
|
||||
} finally {
|
||||
readLock.unlock();
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue