[
https://issues.apache.org/jira/browse/FLUME-998?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13216972#comment-13216972
]
Juhani Connolly commented on FLUME-998:
---------------------------------------
Okay... Having a look at the HDFS sink,it appears that that will just return
ready regardless of there being data or not.
AvroSink on the other hand will return BACKOFF if there is no new data.
Perhaps my interpretation of expected behavior is mistaken? Unfortunately right
now, the Sink interface is undocumented so the intentions for ready and backoff
are not entirely clear.
I personally feel that having sinks return backoff when there is no data makes
sense. However having all channels block for a while on take would be a
reasonable backup to have in case of poorly behaving sinks.
> JDBC Channel take does not block
> --------------------------------
>
> Key: FLUME-998
> URL: https://issues.apache.org/jira/browse/FLUME-998
> Project: Flume
> Issue Type: Improvement
> Components: Channel
> Affects Versions: v1.0.0
> Reporter: Brock Noland
> Priority: Critical
> Fix For: v1.1.0
>
>
> Memory Channel takes block for a few seconds if there are no events to take.
> This so the thread consuming events does not spin in a tight loop. JDBC
> Channel does not block and returns null immediately, as such the thread
> gettings events spins hard.
--
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