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

have Kafka connector report metrics on null records

    XMLWordPrintableJSON

Details

    Description

      Corrupted messages can get into the message pipeline for various reasons.  When a Flink deserializer fails to deserialize the message, and throw an exception due to corrupted message, the flink application will be blocked until we update the deserializer to handle the exception.  AbstractFetcher.emitRecordsWithTimestamps skips null records.  We need to add an metric on # of null records so that the users can measure # of null records that KafkaConnector encounters, and set up monitoring & alerting based on that. 

      https://github.com/apache/flink/blob/1cd696d92c3e088a5bd8e5e11b54aacf46e92ae8/flink-connectors/flink-connector-kafka-base/src/main/java/org/apache/flink/streaming/connectors/kafka/internals/AbstractFetcher.java#L350

       

       

       

      Attachments

        Activity

          People

            Unassigned Unassigned
            yuyang08 Yu Yang
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated: