[
https://issues.apache.org/jira/browse/FLUME-1535?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Ted Malaska updated FLUME-1535:
-------------------------------
Attachment: FLUME-1535-4.patch
Thank you Mike for the review.
Summary of my changes
-Changed currentByteUsage to AtomicLong
-Also added synchronized(currentByteUsage) to put.
> Ability to specify the capacity of MemoryChannel in bytes
> ---------------------------------------------------------
>
> Key: FLUME-1535
> URL: https://issues.apache.org/jira/browse/FLUME-1535
> Project: Flume
> Issue Type: Improvement
> Components: Channel
> Affects Versions: v1.2.0
> Reporter: Jayant Shekhar
> Assignee: Ted Malaska
> Labels: patch
> Fix For: v1.3.0
>
> Attachments: FLUME-1535-0.patch, FLUME-1535-1.patch,
> FLUME-1535-4.patch
>
>
> Users should be able to specify the capacity of memory channel in bytes.
> Currently users are able to specify the capacity in terms of max number of
> events. This causes issues when the size of the events can vary significantly
> (a couple of KB to MB) and could easily result in the Flume agent running
> into OOM.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira