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-3320 Fix:Taildir source reset position bug #297

Closed
wants to merge 1 commit into from

Conversation

winway
Copy link

@winway winway commented Aug 23, 2019

Taildir source has chance to reset position to 0 incorrectly, so data while be duplicated. When log rotate happens just in time so that f and tf are not the same file in between code.

f (f.length() < tf.getPos()) {
    logger.info("Pos " + tf.getPos() + " is larger than file size! "
        + "Restarting from pos 0, file: " + tf.getPath() + ", inode: " + inode);
    tf.updatePos(tf.getPath(), inode, 0);
}

@rgoers
Copy link
Member

rgoers commented May 10, 2022

This looks like it is superseded by #368.

@rgoers
Copy link
Member

rgoers commented Oct 8, 2022

Superceded by #368

@rgoers rgoers closed this Oct 8, 2022
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.

None yet

2 participants