NIFI-3600 Improve logging and relationship routing for failures in De…#1595
NIFI-3600 Improve logging and relationship routing for failures in De…#1595jdye64 wants to merge 3 commits intoapache:masterfrom jdye64:NIFI-3600
Conversation
|
@jdye64 can you please solve the conflicts? Cheers! |
|
@trixpan I tried talking it out but that didn't seem to solve the conflict?? Will try more forceful procedures when I get off the road and near a computer ;) thanks for taking a look at this! |
|
🤣 |
|
Glad you managed to get the lines out of their conflict... 😀 will review |
|
From a first look the code seems ok but I have a quick question: Do we truly need a permission denied relationship? It seems like a deviation from the general nature of failure relationships (generally they are nearly all encompassing). Perhaps we could add the failure reason to an attribute and route to failure? Reason I ask is that I like the strong similarity between the *HDFS, the *File and *S3 processors and I suspect this change would introduce change that will move some of them appart? |
for loop and the original flow file would be transferred but not be the latest flow file if an error occurred in the for loop
|
My reasoning for adding the extra relationship was for end users to understand that certain directories or files had improper permissions and have a visible way to see that with the extra relationship. However your right we could just add something like a "error.code" and "error.message" attributes and route to failure. I would like the "error.code" for sure however since that would be easy to route against while error.message might contain different messages from the exceptions when dependency versions change |
trixpan
left a comment
There was a problem hiding this comment.
Thisbis what I had in mind. What do you think about using numeric codes borrowed from HTTP (as I suspect WebHDFS does?).
Good thing about numbers is that as long they are on the hundreds and have no fractional points they are locale agnostic. As long...
|
Reviewer consensus (see the Jira case for details) is to exclude the hdfs.error.code for now, rather than possibly reporting an incorrect cause of an IOException. Once we can tell the difference, we can add that attribute back in. In that state, @bbende and I are a +1 Adding a unit test, removing the attribute, and merging to master. Thanks much! |
…leteHDFS
Thank you for submitting a contribution to Apache NiFi.
In order to streamline the review of the contribution we ask you
to ensure the following steps have been taken:
For all changes:
Is there a JIRA ticket associated with this PR? Is it referenced
in the commit message?
Does your PR title start with NIFI-XXXX where XXXX is the JIRA number you are trying to resolve? Pay particular attention to the hyphen "-" character.
Has your PR been rebased against the latest commit within the target branch (typically master)?
Is your initial contribution a single, squashed commit?
For code changes:
For documentation related changes:
Note:
Please ensure that once the PR is submitted, you check travis-ci for build issues and submit an update to your PR as soon as possible.