Skip to content

FLUME-3320 Fix:Taildir source reset position bug#297

Closed
winway wants to merge 1 commit intoapache:flume-1.8from
winway:flume-3320
Closed

FLUME-3320 Fix:Taildir source reset position bug#297
winway wants to merge 1 commit intoapache:flume-1.8from
winway:flume-3320

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.

2 participants