Uploaded image for project: 'Flink'
  1. Flink
  2. FLINK-9155

Provide message context information in DeserializationSchema

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Reopened
    • Not a Priority
    • Resolution: Unresolved
    • None
    • None
    • Connectors / Kafka
    • None

    Description

      There's no way to retrieve more information about corrupted message in the DeserializationSchema class. It is only possible to return null, which is a signal to skip the message, and to throw an exception, which will cause job failure.

      For investigation purposes it would be good to have more information, like:

      • kafka topic from which the message came from
        • in Flink 1.4, it is possible to subscribe using Pattern, so topic name is not always evident
      • kafka topic offset

      The idea is to write this information into the log file for further analysis. Having topic name and offset allows to retrieve the message and investigate it.

      Attachments

        Activity

          People

            Unassigned Unassigned
            asmirnov Alex Smirnov
            Votes:
            1 Vote for this issue
            Watchers:
            5 Start watching this issue

            Dates

              Created:
              Updated: