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:
Mark Payne 2017-05-16 14:31:04 -04:00 committed by Aldrin Piri
parent 3a0004a665
commit 2f3ba57dd6
No known key found for this signature in database
GPG Key ID: 531AEBAA4CFE5D00
1 changed files with 6 additions and 2 deletions

View File

@ -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();
}