[ 
https://issues.apache.org/jira/browse/FLUME-1570?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13454187#comment-13454187
 ] 

Brock Noland commented on FLUME-1570:
-------------------------------------

Looks like the problem is due to the fact that maxTotalEvents is optional and 
the error happens when it's not specified. Also the return value of 
eventBatchList.subList(0, (int)eventsLeft - 1); is not assigned to anything.
                
> StressSource Batching bug
> -------------------------
>
>                 Key: FLUME-1570
>                 URL: https://issues.apache.org/jira/browse/FLUME-1570
>             Project: Flume
>          Issue Type: Bug
>          Components: Sinks+Sources
>    Affects Versions: v1.3.0
>            Reporter: Brock Noland
>
> {noformat}
> java.lang.IllegalArgumentException: fromIndex(0) > toIndex(-1002)
>       at java.util.SubList.<init>(AbstractList.java:604)
>       at java.util.RandomAccessSubList.<init>(AbstractList.java:758)
>       at java.util.AbstractList.subList(AbstractList.java:468)
>       at org.apache.flume.source.StressSource.process(StressSource.java:119)
>       at 
> org.apache.flume.source.PollableSourceRunner$PollingRunner.run(PollableSourceRunner.java:139)
>       at java.lang.Thread.run(Thread.java:662)
> {noformat}

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

Reply via email to