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 2025/09/03 07:30:00 UTC
[jira] [Updated] (MINIFICPP-1522) Log the name of the corresponding faulty properties on validation failures
[ https://issues.apache.org/jira/browse/MINIFICPP-1522?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Gábor Gyimesi updated MINIFICPP-1522:
-------------------------------------
Fix Version/s: (was: 0.99.2)
> Log the name of the corresponding faulty properties on validation failures
> --------------------------------------------------------------------------
>
> Key: MINIFICPP-1522
> URL: https://issues.apache.org/jira/browse/MINIFICPP-1522
> Project: Apache NiFi MiNiFi C++
> Issue Type: Improvement
> Affects Versions: 0.9.0
> Reporter: Adam Hunyadi
> Assignee: Gábor Gyimesi
> Priority: Minor
> Labels: MiNiFi-CPP-Hygiene
> Fix For: 0.11.0
>
> Time Spent: 2h 40m
> Remaining Estimate: 0h
>
> *Acceptance Criteria:*
> *GIVEN* a MiNiFi instance with a flow configuration describing a ConsumeKafka processor
> *AND* in the configuration of ConsumeKafka the "Max Poll Time" property is set to "6 sec"
> *WHEN* the MiNiFi instance starts up
> *THEN* It should fail due to property validation
> *AND* The logs should mention that the reason for this was a property validation failure on "Max Poll Time"
> *Background:*
> Currently it is really hard to find out what issue prevents MiNiFi from starting up if the configuration contains a property that does not pass its validation. Running the test described above, currently only these lines are logged to describe the issue:
> {code:java}
> [2021-03-02 16:35:37.375] [org::apache::nifi::minifi::FlowController] [info] Instantiating new flow
> [2021-03-02 16:35:37.377] [org::apache::nifi::minifi::core::YamlConfiguration] [error] Invalid yaml configuration file
> [2021-03-02 16:35:37.377] [main] [error] Failed to load configuration due to exception: General Operation: Cannot convert invalid value
> {code}
> *Proposal:*
> We should at least try to log the name of the property that is causing a SPoF due to validation failure.
--
This message was sent by Atlassian Jira
(v8.20.10#820010)