Details
-
Bug
-
Status: Resolved
-
Major
-
Resolution: Fixed
-
3.11.0
-
None
-
Unknown
Description
The kafka consumer leaks, if the following conditions are met:
- consumer.poll() throws an exception (i.e. TLS handshake issue)
- PollOnError is set to RECONNECT
The run() method will execute another doInit(), if reconnect is set to true and the doInit() method will create another consumer. The "old" consumer does not unsubscribe and is not closed. It will hold on to 4 (I think) file descriptors, so after reiterating these reconnects many times, finally running into a "too many files" exception.
lr-x------ 1 root root 64 Aug 2 10:48 96 -> pipe:[19398]
l-wx------ 1 root root 64 Aug 2 10:48 97 -> pipe:[19398]
lrwx------ 1 root root 64 Aug 2 10:48 98 -> socket:[19399]
lrwx------ 1 root root 64 Aug 2 10:48 99 -> anon_inode:[eventpoll]
Best regards
Jens
Attachments
Issue Links
- is related to
-
CAMEL-16857 breakOnFirstError causes thread and memory leaks in camel-kafka
- Resolved
- links to