Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
wants to merge 2 commits into
base: trunk
Choose a base branch
from

Conversation

felix-thinkingdata
Copy link

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

felix-thinkingdata and others added 2 commits December 20, 2019 17:33
…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

I had the same problem

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.

3 participants