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

MemoryChannel is not thread safe

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • NG alpha 2
    • 1.1.0
    • Channel
    • None
    • 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

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

              Dates

                Created:
                Updated:
                Resolved: