From 84d7cf914ce6ccfdad959faa1daeb54a349519e8 Mon Sep 17 00:00:00 2001 From: Andrew Kenworthy Date: Thu, 3 Dec 2026 11:47:09 +0100 Subject: [PATCH 1/2] remove patch for NIF-15901 and re-number patches accordingly --- ...le-controller-services-before-updati.patch | 76 ------------------- ...progress-logging-for-repository-sca.patch} | 0 ...d-custom-Iceberg-REST-Client-to-fix.patch} | 0 ...HashiCorp-Vault-Parameter-Provider-.patch} | 0 ...9-Remove-Develocity-Maven-extension.patch} | 0 ...nnect-timeout-to-cluster-protocol-s.patch} | 0 ...le-controller-services-before-updati.patch | 76 ------------------- ...progress-logging-for-repository-sca.patch} | 0 ...0-Remove-Develocity-Maven-extension.patch} | 0 ...against-null-controller-status-in-S.patch} | 0 ...azelcast-from-5.5.0-to-5.7.0-to-fix.patch} | 0 ...nnect-timeout-to-cluster-protocol-s.patch} | 0 ...le-controller-services-before-updati.patch | 76 ------------------- ...bergRecord-fails-with-ClassCastExce.patch} | 0 ...bergRecord-maps-fields-by-ordinal-p.patch} | 0 ...progress-logging-for-repository-sca.patch} | 0 ...HashiCorp-Vault-Parameter-Provider-.patch} | 0 ...1-Remove-Develocity-Maven-extension.patch} | 0 ...against-null-controller-status-in-S.patch} | 0 ...azelcast-from-5.6.0-to-5.7.0-to-fix.patch} | 0 ...nnect-timeout-to-cluster-protocol-s.patch} | 0 21 files changed, 228 deletions(-) delete mode 100644 nifi/stackable/patches/2.12.0/0006-NIFI-15901-Disable-controller-services-before-updati.patch rename nifi/stackable/patches/2.12.0/{0007-NIFI-15958-Added-progress-logging-for-repository-sca.patch => 0006-NIFI-15958-Added-progress-logging-for-repository-sca.patch} (100%) rename nifi/stackable/patches/2.12.0/{0008-NIFI-16369-Removed-custom-Iceberg-REST-Client-to-fix.patch => 0007-NIFI-16369-Removed-custom-Iceberg-REST-Client-to-fix.patch} (100%) rename nifi/stackable/patches/2.12.0/{0009-NIFI-16431-Allow-HashiCorp-Vault-Parameter-Provider-.patch => 0008-NIFI-16431-Allow-HashiCorp-Vault-Parameter-Provider-.patch} (100%) rename nifi/stackable/patches/2.12.0/{0010-Remove-Develocity-Maven-extension.patch => 0009-Remove-Develocity-Maven-extension.patch} (100%) rename nifi/stackable/patches/2.12.0/{0011-NIFI-16547-Add-connect-timeout-to-cluster-protocol-s.patch => 0010-NIFI-16547-Add-connect-timeout-to-cluster-protocol-s.patch} (100%) delete mode 100644 nifi/stackable/patches/2.6.0/0009-NIFI-15901-Disable-controller-services-before-updati.patch rename nifi/stackable/patches/2.6.0/{0010-NIFI-15958-Added-progress-logging-for-repository-sca.patch => 0009-NIFI-15958-Added-progress-logging-for-repository-sca.patch} (100%) rename nifi/stackable/patches/2.6.0/{0011-Remove-Develocity-Maven-extension.patch => 0010-Remove-Develocity-Maven-extension.patch} (100%) rename nifi/stackable/patches/2.6.0/{0012-NIFI-16294-Guard-against-null-controller-status-in-S.patch => 0011-NIFI-16294-Guard-against-null-controller-status-in-S.patch} (100%) rename nifi/stackable/patches/2.6.0/{0013-NIFI-15942-Bump-Hazelcast-from-5.5.0-to-5.7.0-to-fix.patch => 0012-NIFI-15942-Bump-Hazelcast-from-5.5.0-to-5.7.0-to-fix.patch} (100%) rename nifi/stackable/patches/2.6.0/{0014-NIFI-16547-Add-connect-timeout-to-cluster-protocol-s.patch => 0013-NIFI-16547-Add-connect-timeout-to-cluster-protocol-s.patch} (100%) delete mode 100644 nifi/stackable/patches/2.9.0/0007-NIFI-15901-Disable-controller-services-before-updati.patch rename nifi/stackable/patches/2.9.0/{0008-NIFI-16069-PutIcebergRecord-fails-with-ClassCastExce.patch => 0007-NIFI-16069-PutIcebergRecord-fails-with-ClassCastExce.patch} (100%) rename nifi/stackable/patches/2.9.0/{0009-NIFI-16067-PutIcebergRecord-maps-fields-by-ordinal-p.patch => 0008-NIFI-16067-PutIcebergRecord-maps-fields-by-ordinal-p.patch} (100%) rename nifi/stackable/patches/2.9.0/{0010-NIFI-15958-Added-progress-logging-for-repository-sca.patch => 0009-NIFI-15958-Added-progress-logging-for-repository-sca.patch} (100%) rename nifi/stackable/patches/2.9.0/{0011-NIFI-16431-Allow-HashiCorp-Vault-Parameter-Provider-.patch => 0010-NIFI-16431-Allow-HashiCorp-Vault-Parameter-Provider-.patch} (100%) rename nifi/stackable/patches/2.9.0/{0012-Remove-Develocity-Maven-extension.patch => 0011-Remove-Develocity-Maven-extension.patch} (100%) rename nifi/stackable/patches/2.9.0/{0013-NIFI-16294-Guard-against-null-controller-status-in-S.patch => 0012-NIFI-16294-Guard-against-null-controller-status-in-S.patch} (100%) rename nifi/stackable/patches/2.9.0/{0014-NIFI-15942-Bump-Hazelcast-from-5.6.0-to-5.7.0-to-fix.patch => 0013-NIFI-15942-Bump-Hazelcast-from-5.6.0-to-5.7.0-to-fix.patch} (100%) rename nifi/stackable/patches/2.9.0/{0015-NIFI-16547-Add-connect-timeout-to-cluster-protocol-s.patch => 0014-NIFI-16547-Add-connect-timeout-to-cluster-protocol-s.patch} (100%) diff --git a/nifi/stackable/patches/2.12.0/0006-NIFI-15901-Disable-controller-services-before-updati.patch b/nifi/stackable/patches/2.12.0/0006-NIFI-15901-Disable-controller-services-before-updati.patch deleted file mode 100644 index a95810bab..000000000 --- a/nifi/stackable/patches/2.12.0/0006-NIFI-15901-Disable-controller-services-before-updati.patch +++ /dev/null @@ -1,76 +0,0 @@ -From b1fd3875b056be0af28feecb3182c9b44abd5393 Mon Sep 17 00:00:00 2001 -From: Andrew Kenworthy -Date: Tue, 5 May 2026 16:57:20 +0200 -Subject: NIFI-15901 Disable controller services before updating - ---- - ...tandardVersionedComponentSynchronizer.java | 44 ++++++++++++++++--- - 1 file changed, 37 insertions(+), 7 deletions(-) - -diff --git a/nifi-framework-bundle/nifi-framework/nifi-framework-components/src/main/java/org/apache/nifi/flow/synchronization/StandardVersionedComponentSynchronizer.java b/nifi-framework-bundle/nifi-framework/nifi-framework-components/src/main/java/org/apache/nifi/flow/synchronization/StandardVersionedComponentSynchronizer.java -index e7930d84c329c16d29258707190c85a2c7b7db7f..eff9a5f0f0d9fa9b0a1aff28b79f79e174a6c3b8 100644 ---- a/nifi-framework-bundle/nifi-framework/nifi-framework-components/src/main/java/org/apache/nifi/flow/synchronization/StandardVersionedComponentSynchronizer.java -+++ b/nifi-framework-bundle/nifi-framework/nifi-framework-components/src/main/java/org/apache/nifi/flow/synchronization/StandardVersionedComponentSynchronizer.java -@@ -727,7 +727,7 @@ public class StandardVersionedComponentSynchronizer implements VersionedComponen - } - - private void synchronizeControllerServices(final ProcessGroup group, final VersionedProcessGroup proposed, final Map servicesByVersionedId, -- final ProcessGroup topLevelGroup) { -+ final ProcessGroup topLevelGroup) throws FlowSynchronizationException { - // Controller Services have to be handled a bit differently than other components. This is because Processors and Controller - // Services may reference other Controller Services. Since we may be adding Service A, which depends on Service B, before adding - // Service B, we need to ensure that we create all Controller Services first and then call updateControllerService for each -@@ -761,17 +761,47 @@ public class StandardVersionedComponentSynchronizer implements VersionedComponen - updateControllerService(addedService, proposedService, topLevelGroup); - } - -- // Update all of the Controller Services to match the VersionedControllerService -+ // Update all Controller Services to match the VersionedControllerService. -+ // Services may still be ENABLED here because not all callers disable them before sync-ing. -+ // We must disable before calling updateControllerService, which calls setProperties -+ // which calls verifyModifiable and throws IllegalStateException on ENABLED services. - for (final Map.Entry entry : services.entrySet()) { - final ControllerServiceNode service = entry.getKey(); - final VersionedControllerService proposedService = entry.getValue(); - - if (updatedVersionedComponentIds.contains(proposedService.getIdentifier())) { -- updateControllerService(service, proposedService, topLevelGroup); -- // Any existing component that is modified during synchronization may have its properties reverted to a pre-migration state, -- // so we then add it to the set to allow migrateProperties to be called again to get it back to the migrated state -- createdAndModifiedExtensions.add(new CreatedOrModifiedExtension(service, getPropertyValues(service))); -- LOG.info("Updated {}", service); -+ final long stopTimeout = System.currentTimeMillis() + syncOptions.getComponentStopTimeout().toMillis(); -+ final Set referencesToRestart = new HashSet<>(); -+ final Set servicesToRestart = new HashSet<>(); -+ -+ try { -+ try { -+ stopControllerService(service, proposedService, stopTimeout, -+ syncOptions.getComponentStopTimeoutAction(), -+ referencesToRestart, servicesToRestart, syncOptions); -+ } catch (final TimeoutException e) { -+ throw new FlowSynchronizationException("Failed to stop Controller Service " + service + " in preparation for update", e); -+ } catch (final InterruptedException e) { -+ Thread.currentThread().interrupt(); -+ throw new FlowSynchronizationException("Interrupted while stopping Controller Service " + service, e); -+ } -+ updateControllerService(service, proposedService, topLevelGroup); -+ createdAndModifiedExtensions.add(new CreatedOrModifiedExtension(service, getPropertyValues(service))); -+ LOG.info("Updated {}", service); -+ } finally { -+ // Re-enable services and restart components that were stopped for the update, -+ // restoring the controller to its pre-update running state. -+ if (proposedService.getScheduledState() != org.apache.nifi.flow.ScheduledState.DISABLED) { -+ // Use the component scheduler (not the provider directly) which has -+ // already been paused, avoiding a race with the enable loop below. -+ context.getComponentScheduler().enableControllerServicesAsync(servicesToRestart); -+ notifyScheduledStateChange(servicesToRestart, syncOptions, org.apache.nifi.flow.ScheduledState.ENABLED); -+ context.getControllerServiceProvider().scheduleReferencingComponents( -+ service, referencesToRestart, context.getComponentScheduler()); -+ referencesToRestart.forEach(componentNode -> -+ notifyScheduledStateChange(componentNode, syncOptions, org.apache.nifi.flow.ScheduledState.RUNNING)); -+ } -+ } - } - } - diff --git a/nifi/stackable/patches/2.12.0/0007-NIFI-15958-Added-progress-logging-for-repository-sca.patch b/nifi/stackable/patches/2.12.0/0006-NIFI-15958-Added-progress-logging-for-repository-sca.patch similarity index 100% rename from nifi/stackable/patches/2.12.0/0007-NIFI-15958-Added-progress-logging-for-repository-sca.patch rename to nifi/stackable/patches/2.12.0/0006-NIFI-15958-Added-progress-logging-for-repository-sca.patch diff --git a/nifi/stackable/patches/2.12.0/0008-NIFI-16369-Removed-custom-Iceberg-REST-Client-to-fix.patch b/nifi/stackable/patches/2.12.0/0007-NIFI-16369-Removed-custom-Iceberg-REST-Client-to-fix.patch similarity index 100% rename from nifi/stackable/patches/2.12.0/0008-NIFI-16369-Removed-custom-Iceberg-REST-Client-to-fix.patch rename to nifi/stackable/patches/2.12.0/0007-NIFI-16369-Removed-custom-Iceberg-REST-Client-to-fix.patch diff --git a/nifi/stackable/patches/2.12.0/0009-NIFI-16431-Allow-HashiCorp-Vault-Parameter-Provider-.patch b/nifi/stackable/patches/2.12.0/0008-NIFI-16431-Allow-HashiCorp-Vault-Parameter-Provider-.patch similarity index 100% rename from nifi/stackable/patches/2.12.0/0009-NIFI-16431-Allow-HashiCorp-Vault-Parameter-Provider-.patch rename to nifi/stackable/patches/2.12.0/0008-NIFI-16431-Allow-HashiCorp-Vault-Parameter-Provider-.patch diff --git a/nifi/stackable/patches/2.12.0/0010-Remove-Develocity-Maven-extension.patch b/nifi/stackable/patches/2.12.0/0009-Remove-Develocity-Maven-extension.patch similarity index 100% rename from nifi/stackable/patches/2.12.0/0010-Remove-Develocity-Maven-extension.patch rename to nifi/stackable/patches/2.12.0/0009-Remove-Develocity-Maven-extension.patch diff --git a/nifi/stackable/patches/2.12.0/0011-NIFI-16547-Add-connect-timeout-to-cluster-protocol-s.patch b/nifi/stackable/patches/2.12.0/0010-NIFI-16547-Add-connect-timeout-to-cluster-protocol-s.patch similarity index 100% rename from nifi/stackable/patches/2.12.0/0011-NIFI-16547-Add-connect-timeout-to-cluster-protocol-s.patch rename to nifi/stackable/patches/2.12.0/0010-NIFI-16547-Add-connect-timeout-to-cluster-protocol-s.patch diff --git a/nifi/stackable/patches/2.6.0/0009-NIFI-15901-Disable-controller-services-before-updati.patch b/nifi/stackable/patches/2.6.0/0009-NIFI-15901-Disable-controller-services-before-updati.patch deleted file mode 100644 index cafa4d883..000000000 --- a/nifi/stackable/patches/2.6.0/0009-NIFI-15901-Disable-controller-services-before-updati.patch +++ /dev/null @@ -1,76 +0,0 @@ -From 67b404db6005a90b9ef6fce018524b181dae9b98 Mon Sep 17 00:00:00 2001 -From: Andrew Kenworthy -Date: Tue, 5 May 2026 17:50:06 +0200 -Subject: NIFI-15901 Disable controller services before updating - ---- - ...tandardVersionedComponentSynchronizer.java | 44 ++++++++++++++++--- - 1 file changed, 37 insertions(+), 7 deletions(-) - -diff --git a/nifi-framework-bundle/nifi-framework/nifi-framework-components/src/main/java/org/apache/nifi/flow/synchronization/StandardVersionedComponentSynchronizer.java b/nifi-framework-bundle/nifi-framework/nifi-framework-components/src/main/java/org/apache/nifi/flow/synchronization/StandardVersionedComponentSynchronizer.java -index c3e059171eb68ea9516bb52d0afb7c2bdb81417c..030f7f5a9001685ed1c958d96a75d1924de14120 100644 ---- a/nifi-framework-bundle/nifi-framework/nifi-framework-components/src/main/java/org/apache/nifi/flow/synchronization/StandardVersionedComponentSynchronizer.java -+++ b/nifi-framework-bundle/nifi-framework/nifi-framework-components/src/main/java/org/apache/nifi/flow/synchronization/StandardVersionedComponentSynchronizer.java -@@ -707,7 +707,7 @@ public class StandardVersionedComponentSynchronizer implements VersionedComponen - } - - private void synchronizeControllerServices(final ProcessGroup group, final VersionedProcessGroup proposed, final Map servicesByVersionedId, -- final ProcessGroup topLevelGroup) { -+ final ProcessGroup topLevelGroup) throws FlowSynchronizationException { - // Controller Services have to be handled a bit differently than other components. This is because Processors and Controller - // Services may reference other Controller Services. Since we may be adding Service A, which depends on Service B, before adding - // Service B, we need to ensure that we create all Controller Services first and then call updateControllerService for each -@@ -741,17 +741,47 @@ public class StandardVersionedComponentSynchronizer implements VersionedComponen - updateControllerService(addedService, proposedService, topLevelGroup); - } - -- // Update all of the Controller Services to match the VersionedControllerService -+ // Update all Controller Services to match the VersionedControllerService. -+ // Services may still be ENABLED here because not all callers disable them before sync-ing. -+ // We must disable before calling updateControllerService, which calls setProperties -+ // which calls verifyModifiable and throws IllegalStateException on ENABLED services. - for (final Map.Entry entry : services.entrySet()) { - final ControllerServiceNode service = entry.getKey(); - final VersionedControllerService proposedService = entry.getValue(); - - if (updatedVersionedComponentIds.contains(proposedService.getIdentifier())) { -- updateControllerService(service, proposedService, topLevelGroup); -- // Any existing component that is modified during synchronization may have its properties reverted to a pre-migration state, -- // so we then add it to the set to allow migrateProperties to be called again to get it back to the migrated state -- createdAndModifiedExtensions.add(new CreatedOrModifiedExtension(service, getPropertyValues(service))); -- LOG.info("Updated {}", service); -+ final long stopTimeout = System.currentTimeMillis() + syncOptions.getComponentStopTimeout().toMillis(); -+ final Set referencesToRestart = new HashSet<>(); -+ final Set servicesToRestart = new HashSet<>(); -+ -+ try { -+ try { -+ stopControllerService(service, proposedService, stopTimeout, -+ syncOptions.getComponentStopTimeoutAction(), -+ referencesToRestart, servicesToRestart, syncOptions); -+ } catch (final TimeoutException e) { -+ throw new FlowSynchronizationException("Failed to stop Controller Service " + service + " in preparation for update", e); -+ } catch (final InterruptedException e) { -+ Thread.currentThread().interrupt(); -+ throw new FlowSynchronizationException("Interrupted while stopping Controller Service " + service, e); -+ } -+ updateControllerService(service, proposedService, topLevelGroup); -+ createdAndModifiedExtensions.add(new CreatedOrModifiedExtension(service, getPropertyValues(service))); -+ LOG.info("Updated {}", service); -+ } finally { -+ // Re-enable services and restart components that were stopped for the update, -+ // restoring the controller to its pre-update running state. -+ if (proposedService.getScheduledState() != org.apache.nifi.flow.ScheduledState.DISABLED) { -+ // Use the component scheduler (not the provider directly) which has -+ // already been paused, avoiding a race with the enable loop below. -+ context.getComponentScheduler().enableControllerServicesAsync(servicesToRestart); -+ notifyScheduledStateChange(servicesToRestart, syncOptions, org.apache.nifi.flow.ScheduledState.ENABLED); -+ context.getControllerServiceProvider().scheduleReferencingComponents( -+ service, referencesToRestart, context.getComponentScheduler()); -+ referencesToRestart.forEach(componentNode -> -+ notifyScheduledStateChange(componentNode, syncOptions, org.apache.nifi.flow.ScheduledState.RUNNING)); -+ } -+ } - } - } - diff --git a/nifi/stackable/patches/2.6.0/0010-NIFI-15958-Added-progress-logging-for-repository-sca.patch b/nifi/stackable/patches/2.6.0/0009-NIFI-15958-Added-progress-logging-for-repository-sca.patch similarity index 100% rename from nifi/stackable/patches/2.6.0/0010-NIFI-15958-Added-progress-logging-for-repository-sca.patch rename to nifi/stackable/patches/2.6.0/0009-NIFI-15958-Added-progress-logging-for-repository-sca.patch diff --git a/nifi/stackable/patches/2.6.0/0011-Remove-Develocity-Maven-extension.patch b/nifi/stackable/patches/2.6.0/0010-Remove-Develocity-Maven-extension.patch similarity index 100% rename from nifi/stackable/patches/2.6.0/0011-Remove-Develocity-Maven-extension.patch rename to nifi/stackable/patches/2.6.0/0010-Remove-Develocity-Maven-extension.patch diff --git a/nifi/stackable/patches/2.6.0/0012-NIFI-16294-Guard-against-null-controller-status-in-S.patch b/nifi/stackable/patches/2.6.0/0011-NIFI-16294-Guard-against-null-controller-status-in-S.patch similarity index 100% rename from nifi/stackable/patches/2.6.0/0012-NIFI-16294-Guard-against-null-controller-status-in-S.patch rename to nifi/stackable/patches/2.6.0/0011-NIFI-16294-Guard-against-null-controller-status-in-S.patch diff --git a/nifi/stackable/patches/2.6.0/0013-NIFI-15942-Bump-Hazelcast-from-5.5.0-to-5.7.0-to-fix.patch b/nifi/stackable/patches/2.6.0/0012-NIFI-15942-Bump-Hazelcast-from-5.5.0-to-5.7.0-to-fix.patch similarity index 100% rename from nifi/stackable/patches/2.6.0/0013-NIFI-15942-Bump-Hazelcast-from-5.5.0-to-5.7.0-to-fix.patch rename to nifi/stackable/patches/2.6.0/0012-NIFI-15942-Bump-Hazelcast-from-5.5.0-to-5.7.0-to-fix.patch diff --git a/nifi/stackable/patches/2.6.0/0014-NIFI-16547-Add-connect-timeout-to-cluster-protocol-s.patch b/nifi/stackable/patches/2.6.0/0013-NIFI-16547-Add-connect-timeout-to-cluster-protocol-s.patch similarity index 100% rename from nifi/stackable/patches/2.6.0/0014-NIFI-16547-Add-connect-timeout-to-cluster-protocol-s.patch rename to nifi/stackable/patches/2.6.0/0013-NIFI-16547-Add-connect-timeout-to-cluster-protocol-s.patch diff --git a/nifi/stackable/patches/2.9.0/0007-NIFI-15901-Disable-controller-services-before-updati.patch b/nifi/stackable/patches/2.9.0/0007-NIFI-15901-Disable-controller-services-before-updati.patch deleted file mode 100644 index f4fcb8726..000000000 --- a/nifi/stackable/patches/2.9.0/0007-NIFI-15901-Disable-controller-services-before-updati.patch +++ /dev/null @@ -1,76 +0,0 @@ -From 18fd66eeba5ebf61048576cc48500611a3e2e5ba Mon Sep 17 00:00:00 2001 -From: Andrew Kenworthy -Date: Tue, 5 May 2026 16:57:20 +0200 -Subject: NIFI-15901 Disable controller services before updating - ---- - ...tandardVersionedComponentSynchronizer.java | 44 ++++++++++++++++--- - 1 file changed, 37 insertions(+), 7 deletions(-) - -diff --git a/nifi-framework-bundle/nifi-framework/nifi-framework-components/src/main/java/org/apache/nifi/flow/synchronization/StandardVersionedComponentSynchronizer.java b/nifi-framework-bundle/nifi-framework/nifi-framework-components/src/main/java/org/apache/nifi/flow/synchronization/StandardVersionedComponentSynchronizer.java -index 2c64fa8caeff81c9cb01eb95552eed1e66e99771..028dfbf90bc481a0adecd91b94bfed95746e78c2 100644 ---- a/nifi-framework-bundle/nifi-framework/nifi-framework-components/src/main/java/org/apache/nifi/flow/synchronization/StandardVersionedComponentSynchronizer.java -+++ b/nifi-framework-bundle/nifi-framework/nifi-framework-components/src/main/java/org/apache/nifi/flow/synchronization/StandardVersionedComponentSynchronizer.java -@@ -711,7 +711,7 @@ public class StandardVersionedComponentSynchronizer implements VersionedComponen - } - - private void synchronizeControllerServices(final ProcessGroup group, final VersionedProcessGroup proposed, final Map servicesByVersionedId, -- final ProcessGroup topLevelGroup) { -+ final ProcessGroup topLevelGroup) throws FlowSynchronizationException { - // Controller Services have to be handled a bit differently than other components. This is because Processors and Controller - // Services may reference other Controller Services. Since we may be adding Service A, which depends on Service B, before adding - // Service B, we need to ensure that we create all Controller Services first and then call updateControllerService for each -@@ -745,17 +745,47 @@ public class StandardVersionedComponentSynchronizer implements VersionedComponen - updateControllerService(addedService, proposedService, topLevelGroup); - } - -- // Update all of the Controller Services to match the VersionedControllerService -+ // Update all Controller Services to match the VersionedControllerService. -+ // Services may still be ENABLED here because not all callers disable them before sync-ing. -+ // We must disable before calling updateControllerService, which calls setProperties -+ // which calls verifyModifiable and throws IllegalStateException on ENABLED services. - for (final Map.Entry entry : services.entrySet()) { - final ControllerServiceNode service = entry.getKey(); - final VersionedControllerService proposedService = entry.getValue(); - - if (updatedVersionedComponentIds.contains(proposedService.getIdentifier())) { -- updateControllerService(service, proposedService, topLevelGroup); -- // Any existing component that is modified during synchronization may have its properties reverted to a pre-migration state, -- // so we then add it to the set to allow migrateProperties to be called again to get it back to the migrated state -- createdAndModifiedExtensions.add(new CreatedOrModifiedExtension(service, getPropertyValues(service))); -- LOG.info("Updated {}", service); -+ final long stopTimeout = System.currentTimeMillis() + syncOptions.getComponentStopTimeout().toMillis(); -+ final Set referencesToRestart = new HashSet<>(); -+ final Set servicesToRestart = new HashSet<>(); -+ -+ try { -+ try { -+ stopControllerService(service, proposedService, stopTimeout, -+ syncOptions.getComponentStopTimeoutAction(), -+ referencesToRestart, servicesToRestart, syncOptions); -+ } catch (final TimeoutException e) { -+ throw new FlowSynchronizationException("Failed to stop Controller Service " + service + " in preparation for update", e); -+ } catch (final InterruptedException e) { -+ Thread.currentThread().interrupt(); -+ throw new FlowSynchronizationException("Interrupted while stopping Controller Service " + service, e); -+ } -+ updateControllerService(service, proposedService, topLevelGroup); -+ createdAndModifiedExtensions.add(new CreatedOrModifiedExtension(service, getPropertyValues(service))); -+ LOG.info("Updated {}", service); -+ } finally { -+ // Re-enable services and restart components that were stopped for the update, -+ // restoring the controller to its pre-update running state. -+ if (proposedService.getScheduledState() != org.apache.nifi.flow.ScheduledState.DISABLED) { -+ // Use the component scheduler (not the provider directly) which has -+ // already been paused, avoiding a race with the enable loop below. -+ context.getComponentScheduler().enableControllerServicesAsync(servicesToRestart); -+ notifyScheduledStateChange(servicesToRestart, syncOptions, org.apache.nifi.flow.ScheduledState.ENABLED); -+ context.getControllerServiceProvider().scheduleReferencingComponents( -+ service, referencesToRestart, context.getComponentScheduler()); -+ referencesToRestart.forEach(componentNode -> -+ notifyScheduledStateChange(componentNode, syncOptions, org.apache.nifi.flow.ScheduledState.RUNNING)); -+ } -+ } - } - } - diff --git a/nifi/stackable/patches/2.9.0/0008-NIFI-16069-PutIcebergRecord-fails-with-ClassCastExce.patch b/nifi/stackable/patches/2.9.0/0007-NIFI-16069-PutIcebergRecord-fails-with-ClassCastExce.patch similarity index 100% rename from nifi/stackable/patches/2.9.0/0008-NIFI-16069-PutIcebergRecord-fails-with-ClassCastExce.patch rename to nifi/stackable/patches/2.9.0/0007-NIFI-16069-PutIcebergRecord-fails-with-ClassCastExce.patch diff --git a/nifi/stackable/patches/2.9.0/0009-NIFI-16067-PutIcebergRecord-maps-fields-by-ordinal-p.patch b/nifi/stackable/patches/2.9.0/0008-NIFI-16067-PutIcebergRecord-maps-fields-by-ordinal-p.patch similarity index 100% rename from nifi/stackable/patches/2.9.0/0009-NIFI-16067-PutIcebergRecord-maps-fields-by-ordinal-p.patch rename to nifi/stackable/patches/2.9.0/0008-NIFI-16067-PutIcebergRecord-maps-fields-by-ordinal-p.patch diff --git a/nifi/stackable/patches/2.9.0/0010-NIFI-15958-Added-progress-logging-for-repository-sca.patch b/nifi/stackable/patches/2.9.0/0009-NIFI-15958-Added-progress-logging-for-repository-sca.patch similarity index 100% rename from nifi/stackable/patches/2.9.0/0010-NIFI-15958-Added-progress-logging-for-repository-sca.patch rename to nifi/stackable/patches/2.9.0/0009-NIFI-15958-Added-progress-logging-for-repository-sca.patch diff --git a/nifi/stackable/patches/2.9.0/0011-NIFI-16431-Allow-HashiCorp-Vault-Parameter-Provider-.patch b/nifi/stackable/patches/2.9.0/0010-NIFI-16431-Allow-HashiCorp-Vault-Parameter-Provider-.patch similarity index 100% rename from nifi/stackable/patches/2.9.0/0011-NIFI-16431-Allow-HashiCorp-Vault-Parameter-Provider-.patch rename to nifi/stackable/patches/2.9.0/0010-NIFI-16431-Allow-HashiCorp-Vault-Parameter-Provider-.patch diff --git a/nifi/stackable/patches/2.9.0/0012-Remove-Develocity-Maven-extension.patch b/nifi/stackable/patches/2.9.0/0011-Remove-Develocity-Maven-extension.patch similarity index 100% rename from nifi/stackable/patches/2.9.0/0012-Remove-Develocity-Maven-extension.patch rename to nifi/stackable/patches/2.9.0/0011-Remove-Develocity-Maven-extension.patch diff --git a/nifi/stackable/patches/2.9.0/0013-NIFI-16294-Guard-against-null-controller-status-in-S.patch b/nifi/stackable/patches/2.9.0/0012-NIFI-16294-Guard-against-null-controller-status-in-S.patch similarity index 100% rename from nifi/stackable/patches/2.9.0/0013-NIFI-16294-Guard-against-null-controller-status-in-S.patch rename to nifi/stackable/patches/2.9.0/0012-NIFI-16294-Guard-against-null-controller-status-in-S.patch diff --git a/nifi/stackable/patches/2.9.0/0014-NIFI-15942-Bump-Hazelcast-from-5.6.0-to-5.7.0-to-fix.patch b/nifi/stackable/patches/2.9.0/0013-NIFI-15942-Bump-Hazelcast-from-5.6.0-to-5.7.0-to-fix.patch similarity index 100% rename from nifi/stackable/patches/2.9.0/0014-NIFI-15942-Bump-Hazelcast-from-5.6.0-to-5.7.0-to-fix.patch rename to nifi/stackable/patches/2.9.0/0013-NIFI-15942-Bump-Hazelcast-from-5.6.0-to-5.7.0-to-fix.patch diff --git a/nifi/stackable/patches/2.9.0/0015-NIFI-16547-Add-connect-timeout-to-cluster-protocol-s.patch b/nifi/stackable/patches/2.9.0/0014-NIFI-16547-Add-connect-timeout-to-cluster-protocol-s.patch similarity index 100% rename from nifi/stackable/patches/2.9.0/0015-NIFI-16547-Add-connect-timeout-to-cluster-protocol-s.patch rename to nifi/stackable/patches/2.9.0/0014-NIFI-16547-Add-connect-timeout-to-cluster-protocol-s.patch From f399c084fb4cc9c843b3911fc89805d24d8cf43b Mon Sep 17 00:00:00 2001 From: Andrew Kenworthy Date: Thu, 3 Dec 2026 12:30:22 +0100 Subject: [PATCH 2/2] changelog --- CHANGELOG.md | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 001e66e96..a7a8df948 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -4,6 +4,10 @@ All notable changes to this project will be documented in this file. ## [Unreleased] +### Changed + +- nifi: Removed patch for [NIFI-15901](https://issues.apache.org/jira/browse/NIFI-15901) ([#1767]). + ### Fixed - phoenix: Backport the upstream addendum to PHOENIX-5215, which stops the client jars from bundling the OpenTelemetry API, for `5.3.1` and `5.3.2` ([#1761]). @@ -11,6 +15,7 @@ All notable changes to this project will be documented in this file. [#1749]: https://github.com/stackabletech/docker-images/pull/1749 [#1761]: https://github.com/stackabletech/docker-images/pull/1761 +[#1767]: https://github.com/stackabletech/docker-images/pull/1767 ## [26.11.0] - 2026-11-20