Member since
09-05-2022
3
Posts
0
Kudos Received
0
Solutions
03-28-2023
05:34 AM
Hello, I was just wondering if the issue https://issues.apache.org/jira/browse/NIFI-10246 is present in version 1.16.3 of Nifi, since the issue indicates that no versions are affected, which I find strange. Regards.
... View more
Labels:
- Labels:
-
Apache NiFi
09-13-2022
02:10 AM
After further testing, it looks like this only happens when the first processor instance of a given type is added to the canvas. When adding another instance, only 1 thread starts and 1 MBean is registered. However, even after deleting all instances, the mock processor is not removed, so the associated MBean and thread remain. That is not really problematic, but if anyone knows why Nifi works that way, I'd be interested to know.
... View more
09-05-2022
12:34 AM
Hello all, I'm working with a custom processor, and among other things, I added to the init() method two things : I register an MBean and I start a new thread. When testing I noticed that I got 2 MBeans registered and 2 threads created. When digging a bit further, I saw that one MBean and one thread were linked to a processor whose id was "mock-processor", and when looking at Nifi's source code it looks like this is part of the initialization of all processors (https://github.com/apache/nifi/blob/master/nifi-nar-bundles/nifi-framework-bundle/nifi-framework/nifi-framework-nar-utils/src/main/java/org/apache/nifi/init/ProcessorInitializer.java), but I'm not sure, and I didn't find anything about that in the documentation. I have two questions: Is this standard behaviour? Are all processors initialized this way or is there something weird going on with the one I'm using? If this is standard behaviour, am I doing something wrong or against best practices by doing this kind of things (registering MBean, starting new thread) inside the init method? Where should these things go? Cheers!
... View more
Labels:
- Labels:
-
Apache NiFi