Skip to content

NIFI-13684 Set Cluster Status HTTP Code based on Connection#9202

Merged
bbende merged 1 commit intoapache:mainfrom
exceptionfactory:NIFI-13684
Aug 27, 2024
Merged

NIFI-13684 Set Cluster Status HTTP Code based on Connection#9202
bbende merged 1 commit intoapache:mainfrom
exceptionfactory:NIFI-13684

Conversation

@exceptionfactory
Copy link
Contributor

Summary

NIFI-13684 Updates the nifi-runtime Management Server /health/cluster HTTP response to return HTTP 503 when the cluster connection state is not CONNECTED or CONNECTING. This change preserves the current behavior of the nifi.sh cluster-status command to return the information to the console, but provides an HTTP response code that corresponds to the content of the connection state.

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

@bbende bbende self-requested a review August 27, 2024 17:29
Copy link
Contributor

@bbende bbende left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good and verified calling nifi.sh cluster-status

@bbende bbende merged commit e9f8408 into apache:main Aug 27, 2024
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