-
Notifications
You must be signed in to change notification settings - Fork 2.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
NIFI-14382: Create processor to list box metadata templates for file #9814
base: main
Are you sure you want to change the base?
Conversation
} catch (final IOException e) { | ||
getLogger().error("Failed writing metadata templates from file [{}]", fileId, e); | ||
flowFile = session.putAttribute(flowFile, ERROR_MESSAGE, e.getMessage()); | ||
flowFile = session.penalize(flowFile); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't think I would penalize the flowfile here, if the user wants to retry the flowfile with a penalty duration, the user should use the retry mechanism at framework level instead of using a self loop relationship.
} catch (final Exception e) { | ||
getLogger().error("Failed to process metadata templates for file [{}]", fileId, e); | ||
flowFile = session.putAttribute(flowFile, ERROR_MESSAGE, e.getMessage()); | ||
flowFile = session.penalize(flowFile); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't think I would penalize the flowfile here, if the user wants to retry the flowfile with a penalty duration, the user should use the retry mechanism at framework level instead of using a self loop relationship.
Summary
NIFI-14382
Tracking
Please complete the following tracking steps prior to pull request creation.
Issue Tracking
Pull Request Tracking
NIFI-00000
NIFI-00000
Pull Request Formatting
main
branchVerification
Please indicate the verification steps performed prior to pull request creation.
Build
mvn clean install -P contrib-check
Licensing
LICENSE
andNOTICE
filesDocumentation