Skip to content

NIFI-15860 Add Registered Flow ID Version Path to MDC Attributes#11163

Open
exceptionfactory wants to merge 1 commit intoapache:mainfrom
exceptionfactory:NIFI-15860
Open

NIFI-15860 Add Registered Flow ID Version Path to MDC Attributes#11163
exceptionfactory wants to merge 1 commit intoapache:mainfrom
exceptionfactory:NIFI-15860

Conversation

@exceptionfactory
Copy link
Copy Markdown
Contributor

Summary

NIFI-15860 Adds registeredFlowIdentifierPath as a Logging Attribute for Process Groups, based on the presence Version Control Information associated with the current Process Group or any parent Process Groups.

The Registered Flow Identifier Path follows a structure similar to the Process Group ID Path and Process Group Name Path attributes, where each path segment corresponds to a Process Group, starting with the root Process Group.

Process Groups that are not under version control use a placeholder value of UNREGISTERED. Registered Process Groups contain both the Registered Flow Identifier and the Registered Version, separated by a colon character. A child Process Group with a parent that is registered would produce a registeredFlowIdentifierPath as follows:

/12345678-1234-1234-1234-123456789012:1.0.0/UNREGISTERED

Additional unit tests exercise the updated Logging Attributes methods.

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 contains commits signed with a registered key indicating Verified status

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 ./mvnw clean install -P contrib-check
    • JDK 21
    • JDK 25

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

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.

1 participant