mirror of https://github.com/apache/nifi.git
NIFI-1124, NIFI-1062 addressed PR comments
Signed-off-by: Bryan Bende <bbende@apache.org>
This commit is contained in:
parent
62e3cfc629
commit
70cc61bb53
|
@ -345,7 +345,7 @@ public class PutHDFS extends AbstractHadoopProcessor {
|
|||
}
|
||||
}
|
||||
getLogger().error("Failed to write to HDFS due to {}", t);
|
||||
session.transfer(flowFile, REL_FAILURE);
|
||||
session.transfer(session.penalize(flowFile), REL_FAILURE);
|
||||
context.yield();
|
||||
}
|
||||
}
|
||||
|
|
|
@ -208,6 +208,7 @@ public class PutHDFSTest {
|
|||
List<MockFlowFile> failedFlowFiles = runner
|
||||
.getFlowFilesForRelationship(new Relationship.Builder().name("failure").build());
|
||||
assertFalse(failedFlowFiles.isEmpty());
|
||||
assertTrue(failedFlowFiles.get(0).isPenalized());
|
||||
|
||||
fs.setPermission(p, new FsPermission(FsAction.EXECUTE, FsAction.EXECUTE, FsAction.EXECUTE));
|
||||
fs.delete(p, true);
|
||||
|
|
Loading…
Reference in New Issue