Red Hat Bugzilla – Bug 1540538
sd_journal can "leak" fds if it starts dropping inotify events
Last modified: 2018-04-10 07:26:26 EDT
sd_journal keeps open fds for every journal files. Those are closed only in the case when journal file is deleted (presumably due to rotation), and we get an inotify event. Unfortunately, this process is not reliable. We need to check if we haven't dropped any inotify messages and in such case re-iterate through the journal files on the disk again. This issue is present in upstream as well.
*** Bug 1545146 has been marked as a duplicate of this bug. ***
Just to update the bug. Right now we are still working on the patch that should fix all corner cases. https://github.com/systemd/systemd/pull/8204
fix merged to staging branch -> https://github.com/lnykryn/systemd-rhel/pull/196 -> post
Since the problem described in this bug report should be resolved in a recent advisory, it has been closed with a resolution of ERRATA. For information on the advisory, and where to find the updated files, follow the link below. If the solution does not work for you, open a new bug report. https://access.redhat.com/errata/RHBA-2018:0711