Uploaded image for project: 'Kafka'
  1. Kafka
  2. KAFKA-10832

Recovery logic is using incorrect ProducerStateManager instance when updating producers

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • 2.8.0
    • None
    • None

    Description

      The bug is that from within Log.updateProducers(…), the code operates on the producerStateManager attribute of the Log instance instead of operating on an input parameter. Please see this LOC where it calls producerStateManager.prepareUpdate thus accessing the attribute from the Log object (see this). This looks unusual particularly for Log.loadProducersFromLog(...) path. Here I believe we should be using the instance passed to the method, rather than the attribute from the Log instance.

      Attachments

        Issue Links

          Activity

            People

              kprakasam Kowshik Prakasam
              kprakasam Kowshik Prakasam
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: