You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@nifi.apache.org by "Martin Zink (Jira)" <ji...@apache.org> on 2023/09/20 12:27:00 UTC

[jira] [Assigned] (MINIFICPP-2155) Imporve StreamCallbacks error handling

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

Martin Zink reassigned MINIFICPP-2155:
--------------------------------------

    Assignee: Martin Zink

> Imporve StreamCallbacks error handling
> --------------------------------------
>
>                 Key: MINIFICPP-2155
>                 URL: https://issues.apache.org/jira/browse/MINIFICPP-2155
>             Project: Apache NiFi MiNiFi C++
>          Issue Type: Improvement
>            Reporter: Martin Zink
>            Assignee: Martin Zink
>            Priority: Minor
>
> Currently io::InputStreamCallback and io::OutputStreamCallback use int64_t to return the results where the static_cast<size_t>(-1) and static_cast<size_t>(-2) signals something went wrong, and  anything other than those means the number of written/read bytes.
> It would be better to use nonstd::expected<size_t, std::error_code> so we can further propage the reason behind the errors so we dont need logging inside these callbacks.



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