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