James Estes created FLUME-2258:
----------------------------------

             Summary: Make event put wait time configurable for 
PseudoTxMemoryChannel
                 Key: FLUME-2258
                 URL: https://issues.apache.org/jira/browse/FLUME-2258
             Project: Flume
          Issue Type: Improvement
          Components: Channel
    Affects Versions: v1.4.0
            Reporter: James Estes
            Priority: Minor


PseudoTxMemoryChannel currently 'puts' events on the internal queue which means 
it waits until there is room for the event.  In cases where this channel is 
being used as an 'optional' channel, waiting is not ideal.  For example, when 
ElasticSearch indexing is a bottleneck, and non-critical (hence, optional), the 
events still back up, waiting for ES.  

It would be nice if the channel either used 'offer' (MemoryChannel does this) 
vs 'put', OR allowed for a wait time to be configured, and use the offer(Object 
event, long timeout, TimeUnit unit) method so that it can be tuned down or off 
(with a 0 timeout).   

http://mail-archives.apache.org/mod_mbox/flume-user/201312.mbox/%3CCAJmzdXm8nGDSWFAN08pHW9dcT6LwkVWU8bcDeY6pM0iESB4ZYw%40mail.gmail.com%3E



--
This message was sent by Atlassian JIRA
(v6.1#6144)

Reply via email to