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

Potential Bug/Doc update in Transactional Producer and Isolation Level

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Critical
    • Resolution: Unresolved
    • 2.4.1
    • None
    • clients
    • None
    • Important

    Description

      Issue

      Difference between LSO and High Watermark offsets when a consumer with "read_committed" aren't probably explained in the correct place.

      Expected Behaviour
      According to documentation, the offset returned should be the one committed last (and successfully).

      Observed (with steps)

      1. Start a local or test kafka cluster (2.4.1 or above)
      2. Create a topic (I have used 3 replication-factor with 1 partition, but 1 and 1 is good)
      3. Use the attached producer app file and set debug pointer to be able to pause on print
      4. Use the attached consumer app file to start a consumer and debug through steps.

      It can be seen that the consumer is actually able to fetch an offset that's not committed by the producer yet.

      Just trying to raise this ticket to confirm whether:

      1) this is well-documented anywhere (which I have missed) - Please refer to this documentation as a resolution

      2) This is a bug - please confirm and provide a timeline when this can be fixed.

      Attachments

        1. Consumer_endOffsets_return_84.jpg
          203 kB
          M. Manna
        2. ConsumerTestApp.java
          4 kB
          M. Manna
        3. Producer_Committed_Successfully_to_82.jpg
          180 kB
          M. Manna
        4. ProducerTestApp.java
          3 kB
          M. Manna

        Activity

          People

            Unassigned Unassigned
            manmedia@gmail.com M. Manna
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated: