Not able to delete an inifinite loop built with funnels in nifi
We have 3 node apache nifi cluster, built on same versions of nifi i.e Apache nifi 1-.16.0 and Open JDK 11. When trying to delete a funnel from below loop, one of the node gives an error on UI "###### node is is unable to fulfill this request due to: An unexpected error has occurred. Please check the logs for additional details."
Nifi infinite loop
Enabled debug logs to see more details and unfortunately it ended up in java.lang.StackOverflow error from the below logs. Seems like flow ended in weird state. We tried deleting work directories on cluster and restarting cluster. It din't help though
ERROR [NiFi Web Server-34943] o.a.nifi.web.api.config.ThrowableMapper An unexpected error has occurred: java.lang.StackOverflowError: Delayed StackOverflowError due to ReservedStackAccess annotated method. R eturning Internal Server Error response.
91796 java.lang.StackOverflowError: Delayed StackOverflowError due to ReservedStackAccess annotated method
91797 at java.base/java.util.concurrent.locks.AbstractQueuedSynchronizer.releaseShared(AbstractQueuedSynchronizer.java:1382)
91798 at java.base/java.util.concurrent.locks.ReentrantReadWriteLock$ReadLock.unlock(ReentrantReadWriteLock.java:897)
91799 at org.apache.nifi.controller.StandardFunnel.getIncomingConnections(StandardFunnel.java:268)


