Uploaded image for project: 'Flink'
  1. Flink
  2. FLINK-10598 Maintain modern Kafka connector
  3. FLINK-11249

FlinkKafkaProducer011 can not be migrated to FlinkKafkaProducer

    XMLWordPrintableJSON

Details

    Description

      As reported by a user on the mailing list "How to migrate Kafka Producer ?" (on 18th December 2018), FlinkKafkaProducer011 can not be migrated to FlinkKafkaProducer and the same problem can occur in the future Kafka producer versions/refactorings.

      The issue is that ListState<FlinkKafkaProducer.NextTransactionalIdHint> FlinkKafkaProducer#nextTransactionalIdHintState field is serialized using java serializers and this is causing problems/collisions on FlinkKafkaProducer011.NextTransactionalIdHint vs
      FlinkKafkaProducer.NextTransactionalIdHint.

      To fix that we probably need to release new versions of those classes, that will rewrite/upgrade this state field to a new one, that doesn't relay on java serialization. After this, we could drop the support for the old field and that in turn will allow users to upgrade from 0.11 connector to the universal one.

      One bright side is that technically speaking our FlinkKafkaProducer011 has the same compatibility matrix as the universal one (it's also forward & backward compatible with the same Kafka versions), so for the time being users can stick to FlinkKafkaProducer011.

      FYI tzulitai yanghua

      Attachments

        Activity

          People

            pnowojski Piotr Nowojski
            pnowojski Piotr Nowojski
            Votes:
            3 Vote for this issue
            Watchers:
            8 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Time Tracking

                Estimated:
                Original Estimate - Not Specified
                Not Specified
                Remaining:
                Remaining Estimate - 0h
                0h
                Logged:
                Time Spent - 1h
                1h