This is an automated email from the ASF dual-hosted git repository.
exceptionfactory pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/nifi.git
The following commit(s) were added to refs/heads/main by this push:
new c9e83ad29a NIFI-14975 Fail Registry startup if nifi-registry-api
Handler throws Exception (#10309)
c9e83ad29a is described below
commit c9e83ad29a9b3770440e5aac531e76fe55745d0a
Author: Michael Moser <[email protected]>
AuthorDate: Mon Sep 15 19:19:15 2025 -0400
NIFI-14975 Fail Registry startup if nifi-registry-api Handler throws
Exception (#10309)
Signed-off-by: David Handermann <[email protected]>
---
.../org/apache/nifi/registry/jetty/handler/StandardHandlerProvider.java | 1 +
1 file changed, 1 insertion(+)
diff --git
a/nifi-registry/nifi-registry-core/nifi-registry-jetty/src/main/java/org/apache/nifi/registry/jetty/handler/StandardHandlerProvider.java
b/nifi-registry/nifi-registry-core/nifi-registry-jetty/src/main/java/org/apache/nifi/registry/jetty/handler/StandardHandlerProvider.java
index 949dbcfbb9..3cb91f1e9f 100644
---
a/nifi-registry/nifi-registry-core/nifi-registry-jetty/src/main/java/org/apache/nifi/registry/jetty/handler/StandardHandlerProvider.java
+++
b/nifi-registry/nifi-registry-core/nifi-registry-jetty/src/main/java/org/apache/nifi/registry/jetty/handler/StandardHandlerProvider.java
@@ -110,6 +110,7 @@ public class StandardHandlerProvider implements
HandlerProvider {
final ClassLoader apiClassLoader =
getApiClassLoader(properties.getDatabaseDriverDirectory());
final WebAppContext apiContext = getWebAppContext(libDirectory,
workDirectory, apiClassLoader, API_FILE_PATTERN, API_CONTEXT_PATH);
apiContext.setAttribute(PROPERTIES_PARAMETER, properties);
+ apiContext.setThrowUnavailableOnStartupException(true);
handlers.addHandler(apiContext);
final WebAppContext docsContext = getWebAppContext(libDirectory,
workDirectory, ClassLoader.getSystemClassLoader(), DOCS_FILE_PATTERN,
DOCS_CONTEXT_PATH);