NIFI-13684 Set Cluster Status HTTP Code based on Connection#9202
Merged
bbende merged 1 commit intoapache:mainfrom Aug 27, 2024
Merged
NIFI-13684 Set Cluster Status HTTP Code based on Connection#9202bbende merged 1 commit intoapache:mainfrom
bbende merged 1 commit intoapache:mainfrom
Conversation
bbende
approved these changes
Aug 27, 2024
Contributor
bbende
left a comment
There was a problem hiding this comment.
Looks good and verified calling nifi.sh cluster-status
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
NIFI-13684 Updates the
nifi-runtimeManagement Server/health/clusterHTTP response to return HTTP 503 when the cluster connection state is notCONNECTEDorCONNECTING. This change preserves the current behavior of thenifi.sh cluster-statuscommand 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
NIFI-00000NIFI-00000Pull Request Formatting
mainbranchVerification
Please indicate the verification steps performed prior to pull request creation.
Build
mvn clean install -P contrib-checkLicensing
LICENSEandNOTICEfilesDocumentation