This is an automated email from the ASF dual-hosted git repository.
pvillard31 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 76b686954d2 NIFI-16166 Removed unused
ControllerServiceNotValidException (#11505)
76b686954d2 is described below
commit 76b686954d2b6a3bf4249997c0214967bd8a808a
Author: David Handermann <[email protected]>
AuthorDate: Tue Aug 4 02:17:00 2026 -0500
NIFI-16166 Removed unused ControllerServiceNotValidException (#11505)
---
.../ControllerServiceNotValidException.java | 26 ----------------------
.../service/StandardControllerServiceProvider.java | 4 +---
2 files changed, 1 insertion(+), 29 deletions(-)
diff --git
a/nifi-framework-bundle/nifi-framework/nifi-framework-components/src/main/java/org/apache/nifi/controller/service/ControllerServiceNotValidException.java
b/nifi-framework-bundle/nifi-framework/nifi-framework-components/src/main/java/org/apache/nifi/controller/service/ControllerServiceNotValidException.java
deleted file mode 100644
index 5ac890604eb..00000000000
---
a/nifi-framework-bundle/nifi-framework/nifi-framework-components/src/main/java/org/apache/nifi/controller/service/ControllerServiceNotValidException.java
+++ /dev/null
@@ -1,26 +0,0 @@
-/*
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements. See the NOTICE file distributed with
- * this work for additional information regarding copyright ownership.
- * The ASF licenses this file to You under the Apache License, Version 2.0
- * (the "License"); you may not use this file except in compliance with
- * the License. You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-package org.apache.nifi.controller.service;
-
-/**
- * Thrown when attempting to enable a Controller Service that is not valid
- */
-public class ControllerServiceNotValidException extends RuntimeException {
- public ControllerServiceNotValidException(final String message) {
- super(message);
- }
-}
diff --git
a/nifi-framework-bundle/nifi-framework/nifi-framework-components/src/main/java/org/apache/nifi/controller/service/StandardControllerServiceProvider.java
b/nifi-framework-bundle/nifi-framework/nifi-framework-components/src/main/java/org/apache/nifi/controller/service/StandardControllerServiceProvider.java
index a6dbf238315..4e0d5dadf43 100644
---
a/nifi-framework-bundle/nifi-framework/nifi-framework-components/src/main/java/org/apache/nifi/controller/service/StandardControllerServiceProvider.java
+++
b/nifi-framework-bundle/nifi-framework/nifi-framework-components/src/main/java/org/apache/nifi/controller/service/StandardControllerServiceProvider.java
@@ -283,9 +283,7 @@ public class StandardControllerServiceProvider implements
ControllerServiceProvi
future.get(30, TimeUnit.SECONDS);
logger.debug("{} enabled with state [{}]",
controllerServiceNode, controllerServiceNode.getState());
- } catch (final ControllerServiceNotValidException e) {
- logger.warn("Failed to enable service {} because it is not
currently valid", controllerServiceNode);
- } catch (Exception e) {
+ } catch (final Exception e) {
logger.error("Failed to enable {}", controllerServiceNode, e);
if (this.bulletinRepo != null) {
this.bulletinRepo.addBulletin(createControllerServiceBulletin(controllerServiceNode,