You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@nifi.apache.org by "Gábor Gyimesi (Jira)" <ji...@apache.org> on 2024/06/05 11:22:00 UTC

[jira] [Resolved] (MINIFICPP-2387) Improve error handling in Python processors

     [ https://issues.apache.org/jira/browse/MINIFICPP-2387?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Gábor Gyimesi resolved MINIFICPP-2387.
--------------------------------------
    Fix Version/s: 0.99.1
       Resolution: Fixed

> Improve error handling in Python processors
> -------------------------------------------
>
>                 Key: MINIFICPP-2387
>                 URL: https://issues.apache.org/jira/browse/MINIFICPP-2387
>             Project: Apache NiFi MiNiFi C++
>          Issue Type: Improvement
>            Reporter: Gábor Gyimesi
>            Assignee: Gábor Gyimesi
>            Priority: Major
>             Fix For: 0.99.1
>
>          Time Spent: 20m
>  Remaining Estimate: 0h
>
> Errors are handled multiple ways in the
>  * throwing PythonScriptException
>  * throwing PyException
>  * setting PyErr_SetString
> The error handling should be revised. In case of the minifi_native python module we should probably set the error with PyErr_SetString instead of throwing exceptions that would result in throwing exception in python instead of the c++ code. We should focus on having better error messages and tracebacks in the logs in case of an error to be able to identify the source of the error.



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