Skip to content

FLUME-3348:TailDirSource will write an empty position when - #313

Open
felix-thinkingdata wants to merge 2 commits into
apache:trunkfrom
felix-thinkingdata:trunk
Open

FLUME-3348:TailDirSource will write an empty position when#313
felix-thinkingdata wants to merge 2 commits into
apache:trunkfrom
felix-thinkingdata:trunk

Conversation

@felix-thinkingdata

Copy link
Copy Markdown

When the number of files exceeds the maximum number of files allowed by the system.

taildirSource throw Exception:

java.io.FileNotFoundException: position/taildir_position.json (Too many open files)
image
the reason:

If an exception occurs while FileWriter writing to the file, whereafter call FileWriter close method ,the file will be cleared. This is FileWriter characteristic.
image

…er call FileWriter close method ,the file will be cleared. This is FileWriter characteristic.
fix src/main/java/org/apache/flume/source/taildir/TaildirSource.java:[23,8] (imports) UnusedImports: Unused import - java.io.FileWriter.
@hackallan

Copy link
Copy Markdown

I had the same problem

jvz
jvz approved these changes Apr 11, 2024
Sign up for freeto 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.

3 participants

@felix-thinkingdata@hackallan@jvz