You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@flume.apache.org by "E. Sammer (Resolved) (JIRA)" <ji...@apache.org> on 2011/10/11 09:00:30 UTC

[jira] [Resolved] (FLUME-784) MemoryChannel should poll with timeout on take() rather than block indefinitely

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

E. Sammer resolved FLUME-784.
-----------------------------

    Resolution: Fixed

Committed to flume-728 branch.
                
> MemoryChannel should poll with timeout on take() rather than block indefinitely
> -------------------------------------------------------------------------------
>
>                 Key: FLUME-784
>                 URL: https://issues.apache.org/jira/browse/FLUME-784
>             Project: Flume
>          Issue Type: Bug
>    Affects Versions: NG alpha 1
>            Reporter: E. Sammer
>            Assignee: E. Sammer
>             Fix For: NG alpha 1
>
>
> MemoryChannel is currently completely blocking; it uses ArrayBlockingQueue#put() and #take() rather than offer() and poll(). This is suboptimal for certain runner strategies and background tasks. For now, MemoryChannel should use #poll(x) where x is some reasonable (ideally configurable) timeout.

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