[ 
https://issues.apache.org/jira/browse/FLUME-1490?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Patrick Wendell updated FLUME-1490:
-----------------------------------

    Attachment: FLUME-1490.v1.patch.txt

This patch implements a count limit, both for overall (successful + failed) 
events and for  successful events. Seems like both could be useful in testing. 
Includes unit test and a bit of code clean-up.
                
> Option to limit number of events sent in Stress source
> ------------------------------------------------------
>
>                 Key: FLUME-1490
>                 URL: https://issues.apache.org/jira/browse/FLUME-1490
>             Project: Flume
>          Issue Type: Improvement
>          Components: Sinks+Sources
>    Affects Versions: v1.2.0
>            Reporter: Will McQueen
>            Assignee: Patrick Wendell
>             Fix For: v1.3.0
>
>         Attachments: FLUME-1490.v1.patch.txt
>
>
> Currently the Stress source (used for testing purposes) has a 'size' prop to 
> control the size of each event. It would be useful to also have a 'count' 
> prop to control the number of events sent. When that limit is reached, the 
> source's process() method can simply return Status.BACKOFF

--
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

        

Reply via email to