Flume
  1. Flume
  2. FLUME-936

MemoryChannel is not thread safe

    Details

    • Type: Bug Bug
    • Status: Resolved
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: NG alpha 2
    • Fix Version/s: v1.1.0
    • Component/s: Channel
    • Labels:
      None
    • Release Note:
      This depends on Flume-935 and should not be committed before that

      Description

      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.

      1. FLUME-936-unittest.patch
        3 kB
        Juhani Connolly
      2. FLUME-936-3.patch
        39 kB
        Juhani Connolly
      3. FLUME-936-4.patch
        39 kB
        Juhani Connolly

        Issue Links

          Activity

          No work has yet been logged on this issue.

            People

            • Assignee:
              Juhani Connolly
              Reporter:
              Juhani Connolly
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Development