You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@nifi.apache.org by "Simon Bence (Jira)" <ji...@apache.org> on 2023/06/22 15:14:00 UTC

[jira] [Created] (NIFI-11743) Restrict FlowRegistryClient API to not allow null returns

Simon Bence created NIFI-11743:
----------------------------------

             Summary: Restrict FlowRegistryClient API to not allow null returns
                 Key: NIFI-11743
                 URL: https://issues.apache.org/jira/browse/NIFI-11743
             Project: Apache NiFi
          Issue Type: Improvement
          Components: Core Framework
            Reporter: Simon Bence
            Assignee: Simon Bence


The current definition of FlowRegisttryClient allows implementations to return with a null value in cases such as list of buckets, flows or versions. In practice, this will not happen, but future implementations of changes has this option now.

This is something we want to eliminate both because it is considered as a bad pattern and because NiFi expect a valid (but maybe empty) return value. From code perspective this will not cause any change, but the document will be extended accordingly and will communicate that null is not a valid return value.

Even if this is not a code change and the current registry client behaves in this manner, it is considered as a breaking change thus this will be part of the 2.x line only.



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