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



/trunk/flume-ng-channels/flume-file-channel/src/main/java/org/apache/flume/channel/file/LogFile.java
<https://reviews.apache.org/r/5551/#comment18241>

    ""Therefore the better fix is to allow for minor size breach with 
warnings.""
    
    This check does not remove the preconditions check. Did you want to do 
this?  Also, the max size is meant to keep the size less than 2GB because we 
store the size as an signed int. Lowering the default max size does a good job 
of that so I think that is a good change.


- Brock Noland


On June 25, 2012, 5:21 p.m., Arvind Prabhakar wrote:
> 
> -----------------------------------------------------------
> This is an automatically generated e-mail. To reply, visit:
> https://reviews.apache.org/r/5551/
> -----------------------------------------------------------
> 
> (Updated June 25, 2012, 5:21 p.m.)
> 
> 
> Review request for Flume and Brock Noland.
> 
> 
> Description
> -------
> 
> Currently the file channel log file can grow beyond the maximum size under 
> load due to non locking size check semantics. These semantics are good in 
> that they allow for higher concurrency rather than having exclusive access to 
> the writer thread between size check and write. Therefore the better fix is 
> to allow for minor size breach with warnings.
> 
> This change modifies the code to relax the assertion that checks file size to 
> warning. Also, increased the log write default timeout from 3s to 10s.
> 
> 
> Diffs
> -----
> 
>   
> /trunk/flume-ng-channels/flume-file-channel/src/main/java/org/apache/flume/channel/file/FileChannelConfiguration.java
>  1353634 
>   
> /trunk/flume-ng-channels/flume-file-channel/src/main/java/org/apache/flume/channel/file/LogFile.java
>  1353634 
> 
> Diff: https://reviews.apache.org/r/5551/diff/
> 
> 
> Testing
> -------
> 
> Ran full tests.
> 
> 
> Thanks,
> 
> Arvind Prabhakar
> 
>

Reply via email to