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

KafkaConsumer offsetsForTimes should include partitions in result even if no offset could be found

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 1.0.0
    • Component/s: consumer
    • Labels:
      None

      Description

      From the javadoc for offsetsForTimes:

           * @return a mapping from partition to the timestamp and offset of the first message with timestamp greater
           *         than or equal to the target timestamp. {@code null} will be returned for the partition if there is no
           *         such message.
      

      If the topic does not support timestamp search (i.e. magic 1 and above), we include the partition in the map with a null value, as described above. If the topic supports timestamp search but no offset could be found, we just leave the partition out of the map. We should make this behavior consistent and include the partition with a null value in the result.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                vahid Vahid Hashemian
                Reporter:
                hachikuji Jason Gustafson
              • Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: