[ 
https://issues.apache.org/jira/browse/NIFI-2686?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15446536#comment-15446536
 ] 

ASF subversion and git services commented on NIFI-2686:
-------------------------------------------------------

Commit 6916c5363abca7a80d5259155f56403d60099973 in nifi's branch 
refs/heads/master from [~ijokarumawak]
[ https://git-wip-us.apache.org/repos/asf?p=nifi.git;h=6916c53 ]

NIFI-2686: Confusing log No hostnames specified

instanceDefinitions.isEmpty() was negate wrongly.

This closes #965.

Signed-off-by: Andy LoPresto <[email protected]>


> Confusing log message with tls-toolkit.sh "No hostnames specified"
> ------------------------------------------------------------------
>
>                 Key: NIFI-2686
>                 URL: https://issues.apache.org/jira/browse/NIFI-2686
>             Project: Apache NiFi
>          Issue Type: Bug
>          Components: Tools and Build
>    Affects Versions: 1.0.0
>            Reporter: Koji Kawamura
>            Priority: Trivial
>
> When I executed the following command (1), I saw a INFO log saying that "No 
> hostnames specified" (2), even though I specified it with hostnames command 
> argument.
> The corresponding java check code (3) becomes true if instanceDefinitions is 
> not empty. I believe the log is meant for when hostname is not specified. The 
> nifi.properties and key stores were successfully generated.
> (1) Executed command
> ./bin/tls-toolkit.sh standalone --hostnames 'localhost' --clientCertDn 
> "CN=Koji.Kawamura,OU=NIFI" -o /tmp/generated-keys
> (2) INFO log
> {code}
> 2016-08-29 11:18:57,024 INFO [main] o.a.n.t.t.s.TlsToolkitStandalone No 
> hostnames specified, not generating any host certificates or configuration.
> {code}
> (3) Check condition:
> {code: title=TlsToolkitStandalone.java line 135}
> if (!instanceDefinitions.isEmpty() && logger.isInfoEnabled()) {
>     logger.info("No " + TlsToolkitStandaloneCommandLine.HOSTNAMES_ARG + " 
> specified, not generating any host certificates or configuration.");
> }
> {code}



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to