You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@flume.apache.org by "hailinzeng (JIRA)" <ji...@apache.org> on 2014/04/01 12:47:24 UTC
[jira] [Issue Comment Deleted] (FLUME-2354) Fix possible race
condition in Cursor
[ https://issues.apache.org/jira/browse/FLUME-2354?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
hailinzeng updated FLUME-2354:
------------------------------
Comment: was deleted
(was: patch file
317,324d316
< // d) possable seen a late timestamp change after size has changed
< if (in.size() == chlen && file.length() == chlen
< && file.lastModified() != lastFileMod) {
< LOG.debug("tail " + file + " : only seen modified timestamp changed, "
< + "postponing judgement");
< return false;
< }
<
)
> Fix possible race condition in Cursor
> -------------------------------------
>
> Key: FLUME-2354
> URL: https://issues.apache.org/jira/browse/FLUME-2354
> Project: Flume
> Issue Type: Bug
> Components: Sinks+Sources
> Affects Versions: v0.9.5
> Reporter: hailinzeng
> Original Estimate: 0.5h
> Remaining Estimate: 0.5h
>
> It is possible to seen a late modification timestamp change after file size has changed.
> // host-time file-size file-modified-time
> // 12:00 50k 12:00
> // 12:01 51k 12:00
> // 12:02 51k 12:01 <-
> If this happens, and nothing new is written after sleepped 1s in line 293, Cursor will resetRAF and read this file from beginning again !
--
This message was sent by Atlassian JIRA
(v6.2#6252)