[
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)