Mike Percy created FLUME-2300:
---------------------------------

             Summary: Allow for multiple concurrent channel transactions from 
the same thread
                 Key: FLUME-2300
                 URL: https://issues.apache.org/jira/browse/FLUME-2300
             Project: Flume
          Issue Type: Bug
          Components: Channel
            Reporter: Mike Percy


Currently, due to BasicTransactionSemantics, there is a ThreadLocal which holds 
a txn hostage, allowing for only one transaction per thread. This is extremely 
limiting for situations where you want to have overlapping windows of 
transactions, for example take for some time and stream the events somewhere, 
then wait for acknowledgments while you start a new txn and continue streaming 
events in a new txn "window" instead of blocking.

In my opinion BasicTransactionSemantics is deeply flawed and we should provide 
an alternative API on existing channels that exposes the raw transactions and 
trusts components to use them correctly, while maintaining backward 
compatibility.



--
This message was sent by Atlassian JIRA
(v6.1.5#6160)

Reply via email to