Skip to content
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

Open
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

ncover21
Copy link
Contributor

@ncover21 ncover21 commented Mar 21, 2025

Summary

NIFI-14382

Tracking

Please complete the following tracking steps prior to pull request creation.

Issue Tracking

Pull Request Tracking

  • Pull Request title starts with Apache NiFi Jira issue number, such as NIFI-00000
  • Pull Request commit message starts with Apache NiFi Jira issue number, as such NIFI-00000

Pull Request Formatting

  • Pull Request based on current revision of the main branch
  • Pull Request refers to a feature branch with one commit containing changes

Verification

Please indicate the verification steps performed prior to pull request creation.

Build

  • Build completed using mvn clean install -P contrib-check
    • JDK 21

Licensing

  • New dependencies are compatible with the Apache License 2.0 according to the License Policy
  • New dependencies are documented in applicable LICENSE and NOTICE files

Documentation

  • Documentation formatting appears as expected in rendered files

Verified

This commit was signed with the committer’s verified signature.
ncover21 Noah

Verified

This commit was signed with the committer’s verified signature.
ncover21 Noah
@ncover21 ncover21 marked this pull request as ready for review March 24, 2025 16:35
@ncover21 ncover21 marked this pull request as draft March 24, 2025 17:06

Verified

This commit was signed with the committer’s verified signature.
ncover21 Noah
@ncover21 ncover21 marked this pull request as ready for review March 24, 2025 17:54
} 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);
Copy link
Contributor

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);
Copy link
Contributor

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants