You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@flume.apache.org by "Mike Percy (JIRA)" <ji...@apache.org> on 2014/01/15 20:56:24 UTC
[jira] [Created] (FLUME-2300) Allow for multiple concurrent channel
transactions from the same thread
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)