Ferenc Gerlits created MINIFICPP-2568:
-----------------------------------------

             Summary: Do not log errors when loading a Python base class
                 Key: MINIFICPP-2568
                 URL: https://issues.apache.org/jira/browse/MINIFICPP-2568
             Project: Apache NiFi MiNiFi C++
          Issue Type: Improvement
    Affects Versions: 0.99.1
            Reporter: Ferenc Gerlits


If multiple Python processors inherit from the same base class, and the base 
class does not implement the {{transform()}} method, then MiNiFi logs errors 
like this during startup:

{noformat}
[2025-05-27 10:19:14.726] 
[org::apache::nifi::minifi::extensions::python::processors::ExecutePythonProcessor]
 [error] Failed to initialize python processor 'BaseProcessor' due to error: 
TypeError: Can't instantiate abstract class BaseProcessor without an 
implementation for abstract method 'transform' 
(0a3d9648-3ae4-11f0-ae73-0242ac180002)
[2025-05-27 10:19:14.726] 
[org::apache::nifi::minifi::extensions::python::PythonCreator] [error] Could 
not process BaseProcessor.py: TypeError: Can't instantiate abstract class 
BaseProcessor without an implementation for abstract method 'transform'
{noformat}

This is a minor issue because the errors are ignored and everything works 
correctly despite them, but we should not log errors when there is no problem.

MINIFICPP-2499 was a similar issue, but the fix for that ticket did not fix 
errors like this.



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to