Github user markap14 commented on a diff in the pull request:
https://github.com/apache/nifi/pull/3010#discussion_r219293820
--- Diff:
nifi-nar-bundles/nifi-framework-bundle/nifi-framework/nifi-framework-cluster/src/main/java/org/apache/nifi/cluster/coordination/node/NodeClusterCoordinator.java
---
@@ -526,6 +579,10 @@ public void removeNode(final NodeIdentifier nodeId,
final String userDn) {
storeState();
}
+ private void onNodeDecommissioned(final NodeIdentifier nodeId) {
+ eventListeners.stream().forEach(listener ->
listener.onNodeDecommissioned(nodeId));
+ }
+
private void onNodeRemoved(final NodeIdentifier nodeId) {
eventListeners.stream().forEach(listener ->
listener.onNodeRemoved(nodeId));
--- End diff --
Even though you didn't add this line, I see that it can also have the call
to stream() removed :)
---