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/06/29 14:59:00 UTC
[jira] [Created] (MINIFICPP-2155) Imporve StreamCallbacks error handling
Martin Zink created MINIFICPP-2155:
--------------------------------------
Summary: 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
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)