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

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
Copy Markdown

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

3 participants