NIFI-1684 added penalization on failure

Signed-off-by: joewitt <joewitt@apache.org>
This commit is contained in:
Oleg Zhurakousky 2016-03-24 15:29:35 -04:00 committed by joewitt
parent 8d960f5243
commit 1292581ec8
1 changed files with 1 additions and 1 deletions

View File

@ -306,7 +306,7 @@ public class PutKafka extends AbstractProcessor {
session.transfer(flowFile, REL_SUCCESS); session.transfer(flowFile, REL_SUCCESS);
} else { } else {
flowFile = session.putAllAttributes(flowFile, this.buildFailedFlowFileAttributes(failedSegmentsRef.get(), messageContext)); flowFile = session.putAllAttributes(flowFile, this.buildFailedFlowFileAttributes(failedSegmentsRef.get(), messageContext));
session.transfer(flowFile, REL_FAILURE); session.transfer(session.penalize(flowFile), REL_FAILURE);
} }
} else { } else {