Home | About | Sematext search-lucene.com search-hadoop.com
 Search Hadoop and all its subprojects:

Switch to Threaded View
Flume >> mail # dev >> Review Request: FLUME-1699. Make the rename of the meta file platform neutral


Copy link to this message
-
Re: Review Request: FLUME-1699. Make the rename of the meta file platform neutral

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

(Updated Nov. 19, 2012, 4:42 a.m.)
Review request for Flume.
Changes
-------

Added code to handle picking up the temp or old files during startup. Also added unit tests for this.
Description
-------

If atomic rename fails, rename the current meta file to old, rename tmp to meta and then delete old.
This addresses bug FLUME-1699.
    https://issues.apache.org/jira/browse/FLUME-1699
Diffs (updated)
-----

  flume-ng-channels/flume-file-channel/src/main/java/org/apache/flume/channel/file/LogFileFactory.java 82e14b0
  flume-ng-channels/flume-file-channel/src/main/java/org/apache/flume/channel/file/LogFileV3.java f768d23
  flume-ng-channels/flume-file-channel/src/main/java/org/apache/flume/channel/file/Serialization.java 6b0eeb3
  flume-ng-channels/flume-file-channel/src/test/java/org/apache/flume/channel/file/TestLogFile.java 4b69698

Diff: https://reviews.apache.org/r/8087/diff/
Testing
-------

All unit tests pass
Thanks,

Hari Shreedharan