Jeetendra G Vasisht created NIFI-12409:
------------------------------------------

             Summary: ListSFTP processor increases thread count when it is 
stopped
                 Key: NIFI-12409
                 URL: https://issues.apache.org/jira/browse/NIFI-12409
             Project: Apache NiFi
          Issue Type: Bug
          Components: Extensions
    Affects Versions: 1.23.2
            Reporter: Jeetendra G Vasisht
         Attachments: image-2023-11-24-11-23-52-497.png, 
image-2023-11-24-11-24-23-019.png

We are using ListSFTP processor that is configured with "Concurrent tasks = 1". 
If it is stopped on the nifi UI while it is processing (showing 1 thread 
running), automatically after the stop, it shows 2 threads:

!image-2023-11-24-11-23-52-497.png|width=368,height=167!

After this, when we start this processor it will always run with 2 threads:

!image-2023-11-24-11-24-23-019.png|width=375,height=172!

and that affects the functionality of the processor. Many times, when it runs, 
it will list more files than expected.

 

If the processor is later stopped while having 2 threads running, it will also 
add an additional thread to the existing ones. Each time this stop and start 
happens as described one by one additional threads are added to the Processor.

 

This is fixed only by stopping the processor when it's not running (I.e. no 
threads are running). After stopping in this condition, when it is started it 
will run again with only one thread.

 

Same issue occurs with ListFTP processor.

 

Note: We are running in a non cluster mode (having just one replica).

 

Because this was found in two default NiFi processors, We are raising this 
ticket to NiFi



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to