Uploaded image for project: 'Flume'
  1. Flume
  2. FLUME-936

MemoryChannel is not thread safe

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: NG alpha 2
    • Fix Version/s: 1.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.

        Attachments

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

          Issue Links

            Activity

              People

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

                Dates

                • Created:
                  Updated:
                  Resolved: