Uploaded image for project: 'Kafka'
  1. Kafka
  2. KAFKA-15857 Introduce LocalLogStartOffset and TieredOffset in OffsetSpec.
  3. KAFKA-17331

Throw/return unsupported version exception if the server/client does NOT support EarliestLocalSpec and LatestTieredSpec

    XMLWordPrintableJSON

Details

    • Sub-task
    • Status: Resolved
    • Blocker
    • Resolution: Fixed
    • None
    • 3.9.0
    • None
    • None

    Description

      see comment: https://github.com/apache/kafka/pull/16841#discussion_r1714476438

      the version must be >=8 if timestamp=-4L and the version must be >=9 if timestamp=-5

      client-side
      it will throw exception in building request[0].

      server-side
      it will return UNSUPPORTED_VERSION in processing ListOffsetsRequest [1]

      [0] https://github.com/apache/kafka/blob/5b9cbcf886d0666849e81d0fbb8c19d3531c1143/clients/src/main/java/org/apache/kafka/common/requests/ListOffsetsRequest.java#L97
      [1] https://github.com/apache/kafka/blob/trunk/core/src/main/scala/kafka/server/KafkaApis.scala#L1173

      Attachments

        Activity

          People

            yangpoan PoAn Yang
            chia7712 Chia-Ping Tsai
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: