Uploaded image for project: 'Samza'
  1. Samza
  2. SAMZA-934

Race condition in Kafka System Producer

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Major
    • Resolution: Unresolved
    • None
    • None
    • None
    • None

    Description

      There is a race condition in the KafkaSystemProducer class in the access to the sendFailed flag. (in the main and the callback threads). It is possible for a

      A. a failure to be masked (or)
      B. a failure to repeatedly re-throw exceptions in a loop,

      by the write to this flag in another thread. This may lead to holes in processing of messages.

      Ideally, failure should immediately shut down the producer in the same callback thread. This will cancel future sends / buffered sends in the producer.

      Attachments

        Activity

          People

            navina Navina Ramesh
            jagadish1989@gmail.com Jagadish
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated: