NIFI-4131 - GFT warning message when badly setting relationships

Signed-off-by: Matt Burgess <mattyb149@apache.org>

This closes #1954
This commit is contained in:
Pierre Villard 2017-06-27 16:27:02 +02:00 committed by Matt Burgess
parent 7f4cfd51ea
commit 902b6e205d
1 changed files with 3 additions and 0 deletions

View File

@ -154,6 +154,9 @@ public class GenerateTableFetch extends AbstractDatabaseFetchProcessor {
if (!isDynamicTableName && !isDynamicMaxValues) {
super.setup(context);
}
if(context.hasIncomingConnection() && !context.hasNonLoopConnection()) {
getLogger().error("The failure relationship can be used only if there is another incoming connection to this processor.");
}
}
@Override