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

Streams is creating two ProducerRecords for each send via RecordCollector

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • 0.10.0.0
    • 0.10.2.0, 0.11.0.0
    • streams

    Description

      The RecordCollector.send(..) method below, currently receives a ProducerRecord from its caller and then creates another one to forward on to its producer. The creation of 2 ProducerRecords should be removed.

      public <K, V> void send(ProducerRecord<K, V> record, Serializer<K> keySerializer, Serializer<V> valueSerializer,
                                  StreamPartitioner<K, V> partitioner)
      

      We could replace the above method with

      public <K, V> void send(String topic,
                                  K key,
                                  V value,
                                  Integer partition,
                                  Long timestamp,
                                  Serializer<K> keySerializer,
                                  Serializer<V> valueSerializer,
                                  StreamPartitioner<K, V> partitioner)
      

      Attachments

        Issue Links

          Activity

            People

              jeyhunkarimov Jeyhun Karimov
              damianguy Damian Guy
              Votes:
              0 Vote for this issue
              Watchers:
              6 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: