Arvind Kandpal created NIFI-16601:
-------------------------------------

             Summary: 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


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)

Reply via email to