Skip to content

Conversation

@mosermw
Copy link
Member

@mosermw mosermw commented Sep 15, 2025

Summary

NIFI-14975

On startup, bad configuration or startup errors can cause NiFi Registry to successfully start and the web UI works, but Jetty can return 503 UNAVAILABLE errors on nifi-registry-api. One (of many) conditions this can happen is if the configuration is fine but an LdapUserGroupProvider or DatabaseUserGroupProvider cannot connect to external services.

This PR causes NiFi Registry to shutdown in these conditions. This aligns with how NiFi behaves in similar scenarios. It also works well in containerized environments, where an orchestrator can now notice Registry is not healthy and retry startup.

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

Licensing

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

Documentation

  • [n/a] Documentation formatting appears as expected in rendered files

Copy link
Contributor

@exceptionfactory exceptionfactory left a comment

Choose a reason for hiding this comment

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

Thanks for this adjustment and aligning to the NiFi JettyServer approach @mosermw, looks good! +1 merging

@exceptionfactory exceptionfactory merged commit c9e83ad into apache:main Sep 15, 2025
7 checks passed
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