Skip to content

FLUME-3325 fixed TaildirSource oom issue#279

Open
belveyf wants to merge 3 commits into
apache:trunkfrom
belveyf:trunk
Open

FLUME-3325 fixed TaildirSource oom issue#279
belveyf wants to merge 3 commits into
apache:trunkfrom
belveyf:trunk

Conversation

@belveyf

@belveyf belveyf commented Mar 26, 2019

Copy link
Copy Markdown

when tailing a lot of files where some file is writing frequently but the others are idle can cause the idleInodes List increasing infinitely, change it to set(list backend) can fix this problem.

belveyf added 3 commits March 26, 2019 23:25
when tailing a lot of files where some file is writing frequently but the others are idle  can cause the idleInodes List  increasing infinitely, change it to set(list backend) can fix this problem.
when tailing a lot of files where some file is writing frequently but the others are idle can cause the idleInodes List increasing infinitely, change it to set(list backend) can fix this problem.
@belveyf belveyf closed this Mar 20, 2020
@belveyf belveyf reopened this Dec 1, 2020
@bessbd

bessbd commented Dec 7, 2020

Copy link
Copy Markdown
Member

Hi @oldbelvey,

Thank you for this PR! The change looks good, but can you please explain why the change resolves the issue described in the title?

@belveyf

belveyf commented Dec 11, 2020

Copy link
Copy Markdown
Author

Hi @oldbelvey,

Thank you for this PR! The change looks good, but can you please explain why the change resolves the issue described in the title?

Hello bessbd, the oom problem is caused by repeatedly add same value into the list. changing list to set just preventing from adding repeated values.
And it is described more specificly at https://issues.apache.org/jira/browse/FLUME-3325

@bessbd bessbd left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, +1

Thank you for this change, @oldbelvey

@bessbd

bessbd commented Dec 15, 2020

Copy link
Copy Markdown
Member

@oldbelvey : can you please include some directions to prove this change resolves the issue?
Ie. how can I reproduce the original issue and see if it happens before applying this change and that it doesn't after applying it?

@belveyf

belveyf commented Dec 17, 2020

Copy link
Copy Markdown
Author

@bessbd I don't think it's easy to reproduce. Tho OOM happens at our production environment, where one flume agent monitored more than fifteen app's log. And as it is described at the JIRA, with one file frequently write while they others are idle, the oom will happen right after the Arraylist boom.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants