MemoryChannel is not thread safe
--------------------------------
Key: FLUME-936
URL: https://issues.apache.org/jira/browse/FLUME-936
Project: Flume
Issue Type: Bug
Components: Channel
Affects Versions: NG alpha 2
Reporter: Juhani Connolly
Fix For: v1.1.0
The memory channel isn't thread safe as a couple of parallel transactions can
commit/rollback each others entries if called in the wrong order.
I'm attaching a unit test I made that demonstrates it using a cyclicbarrier to
force the event order that causes the precondition to fail.
--
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