-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://reviews.apache.org/r/5054/
-----------------------------------------------------------

Review request for Flume and Arvind Prabhakar.


Summary
-------

TestFileChannel.testThreaded has a race condition due to 
FileChannel.FileBackedTransaction not blocking. Sometimes the take threads will 
find no events on the queue and quit. This patch addresses this issue and 
additionally addresses a few issues found in the Log class:

1) We are not closing files open for gets()
2) removeOldLogs could be called after the log as been closed by the background 
thread (identified while fixing #1).


This addresses bug FLUME-1184.
    https://issues.apache.org/jira/browse/FLUME-1184


Diffs
-----

  
flume-ng-channels/flume-file-channel/src/main/java/org/apache/flume/channel/file/Log.java
 a777cd6 
  
flume-ng-channels/flume-file-channel/src/test/java/org/apache/flume/channel/file/TestFileChannel.java
 d20e68c 

Diff: https://reviews.apache.org/r/5054/diff


Testing
-------

All unit tests pass and the unit test in question passed 1000 times in a row 
which it had previously failed to do.


Thanks,

Brock

Reply via email to