[
https://issues.apache.org/jira/browse/NIFI-16601?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=18146709#comment-18146709
]
ASF subversion and git services commented on NIFI-16601:
--------------------------------------------------------
Commit 4898b851394e2c90f93da02824508bda12aa9df9 in nifi's branch
refs/heads/main from Arvind Kandpal
[ https://gitbox.apache.org/repos/asf?p=nifi.git;h=4898b851394 ]
NIFI-16601 Corrected CLI upload-nar to use the narProcessing timeout option
(#11938)
> CLI upload-nar command ignores the narProcessing (-npt) timeout option
> ----------------------------------------------------------------------
>
> Key: NIFI-16601
> URL: https://issues.apache.org/jira/browse/NIFI-16601
> Project: Apache NiFi
> Issue Type: Bug
> Components: Tools and Build
> Reporter: Arvind Kandpal
> Priority: Minor
> Time Spent: 50m
> Remaining Estimate: 0h
>
> The nifi upload-nar command in the NiFi Toolkit CLI registers the option -npt
> / --narProcessing (CommandOption.NAR_UPLOAD_TIMEOUT) to set how long to wait
> for the NAR install to complete. But UploadNar.getProcessingTimeout() reads
> CommandOption.UPDATE_TIMEOUT instead, which is not an option of this command.
> So the value given with -npt is never used and the command always waits the
> default 60 seconds.
> Steps to reproduce:
> 1. Run: nifi upload-nar -nar /path/to/custom.nar -npt 300
> 2. Use a NAR whose install takes more than 60 seconds.
> Expected: the command waits up to 300 seconds for the install to complete.
> Actual: the command stops waiting after 60 seconds and prints "NAR install
> has not completed within the given timeout".
> Code: nifi-toolkit-cli, UploadNar.java, getProcessingTimeout()
> Fix: read CommandOption.NAR_UPLOAD_TIMEOUT in getProcessingTimeout().
--
This message was sent by Atlassian Jira
(v10.3.26#10030026)