You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@nifi.apache.org by "Joseph Witt (JIRA)" <ji...@apache.org> on 2018/07/05 16:20:00 UTC
[jira] [Commented] (NIFI-5378) NiFiProperties: Add check to
validation to prevent startup when duplicate keys are encountered
[ https://issues.apache.org/jira/browse/NIFI-5378?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16533866#comment-16533866 ]
Joseph Witt commented on NIFI-5378:
-----------------------------------
the proposed change feels a little heavy handed but then again if we can detect an obvious configuration error (same key used twice) we should do our best to flag it meaningfully.
> NiFiProperties: Add check to validation to prevent startup when duplicate keys are encountered
> ----------------------------------------------------------------------------------------------
>
> Key: NIFI-5378
> URL: https://issues.apache.org/jira/browse/NIFI-5378
> Project: Apache NiFi
> Issue Type: Improvement
> Components: Configuration
> Affects Versions: 1.7.0
> Reporter: Jon Kessler
> Priority: Minor
>
> Currently duplicate keys can exist in the nifi.properties file and you aren't necessarily guaranteed or sure which value will be used when the system starts. There is already a method in NiFiProperties.java for validation at startup. Logic should be added so that when duplicates are encountered the system is notĀ permitted to start. Also include a good log message to say what the duplicates are and what the issue was.
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)