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

Juhani Connolly commented on FLUME-1255:
----------------------------------------

Fixing it to be more user friendly would be good, but what would you suggest? 
Returning null would give the false belief that there are no more events 
available, likely affecting the behavior of some sinks, and also going against 
the spirit of the interface. The current way MemoryChannel is set up is to 
preserve some strict invariants so that rollbacks should always work.

It seems more like a configuration error than a bug to me, though it's 
certainly not easy for a user to understand.
                
> Channels should not throw exceptions in channel.take if it has reached txn 
> capacity
> -----------------------------------------------------------------------------------
>
>                 Key: FLUME-1255
>                 URL: https://issues.apache.org/jira/browse/FLUME-1255
>             Project: Flume
>          Issue Type: Bug
>            Reporter: Hari Shreedharan
>
> Channels like Memory channel throw exception when reaching txn capacity. If 
> sink's batchsize is more than txn capacity the take function throws exception.

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