[
https://issues.apache.org/jira/browse/NIFI-16601?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=18146590#comment-18146590
]
Arvind Kandpal commented on NIFI-16601:
---------------------------------------
[~joewitt] [~exceptionfactory] [~pvillard] I would like to work on this issue.
Could one of you please assign it to me, or add me to the Contributors role so
I can assign issues to myself? Thanks.
> 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: 10m
> 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)