[
https://issues.apache.org/jira/browse/FLUME-1219?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13280287#comment-13280287
]
Hudson commented on FLUME-1219:
-------------------------------
Integrated in flume-trunk #210 (See
[https://builds.apache.org/job/flume-trunk/210/])
FLUME-1219. Race conditions in BucketWriter and HDFSEventSink
(Mike Percy via Arvind Prabhakar) (Revision 1341096)
Result = SUCCESS
arvind : http://svn.apache.org/viewvc/?view=rev&rev=1341096
Files :
*
/incubator/flume/trunk/flume-ng-sinks/flume-hdfs-sink/src/main/java/org/apache/flume/sink/hdfs/BucketWriter.java
*
/incubator/flume/trunk/flume-ng-sinks/flume-hdfs-sink/src/main/java/org/apache/flume/sink/hdfs/HDFSEventSink.java
*
/incubator/flume/trunk/flume-ng-sinks/flume-hdfs-sink/src/test/java/org/apache/flume/sink/hdfs/TestBucketWriter.java
*
/incubator/flume/trunk/flume-ng-sinks/flume-hdfs-sink/src/test/java/org/apache/flume/sink/hdfs/TestHDFSEventSink.java
> Race conditions in BucketWriter / HDFSEventSink
> -----------------------------------------------
>
> Key: FLUME-1219
> URL: https://issues.apache.org/jira/browse/FLUME-1219
> Project: Flume
> Issue Type: Bug
> Reporter: Mike Percy
> Assignee: Mike Percy
> Fix For: v1.2.0
>
> Attachments: FLUME-1219-1.patch, FLUME-1219-3.patch
>
>
> BucketWriter has several race conditions that came up during my performance
> testing over the weekend. One issue that caused data loss was the lack of
> atomic close() and open() semantics related to the "retry" mechanism after
> the abort() call in HDFSEventSink.process().
> Another issue is the lack of clearly delineated responsibilities for calling
> open(), flush(), close(), etc. For example, HDFSEventSink.start() calls
> open(), HDFSEventSink.process() calls and abort() which calls open(), and
> BucketWriter.append() also calls close() and open().
> There is another race condition related to the JVM shutdown hooks, which
> cause .tmp files not to be renamed.
> These APIs need to be refactored and their responsibilities need to be
> clarified.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators:
https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira