Threads keeps on increasing with Polling Consumer using consumerTemplate.
Issue
- We are using a polling consumer to get files from an FTP server as described in the documentation [1]. Our use case involves a triggered route, which looks up file names from a DB, then attempts to read them from the FTP server. As we have specific files to read we use a syntax similar to the following:
ftp://host:port/path?fileName=file.name
- This reads the file successfully, however it leaves a thread running after its read the file. As we are reading thousands of files this eventually crashes the container. I have tried stopping the endpoint, removing the endpoint, but the only thing that seems to kill the thread is stop the consumer template. However the template is injected [2] so there is only one of them, which means it stops anything else working.
- Note that this happens in Fuse 6.3.0 too.
Environment
- Red Hat JBoss Fuse
- 6.1.0
- 6.2.1
- 6.3.0
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.