[ 
https://issues.apache.org/jira/browse/FLINK-6998?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16090659#comment-16090659
 ] 

ASF GitHub Bot commented on FLINK-6998:
---------------------------------------

Github user zhenzhongxu commented on a diff in the pull request:

    https://github.com/apache/flink/pull/4187#discussion_r127838984
  
    --- Diff: 
flink-connectors/flink-connector-kafka-base/src/main/java/org/apache/flink/streaming/connectors/kafka/FlinkKafkaConsumerBase.java
 ---
    @@ -185,6 +187,18 @@
        private volatile boolean running = true;
     
        // 
------------------------------------------------------------------------
    +   //  internal metrics
    +   // 
------------------------------------------------------------------------
    +
    +   /** Counter for successful Kafka offset commits. */
    +   private transient Counter successfulCommits;
    +
    +   /** Counter for failed Kafka offset commits. */
    +   private transient Counter failedCommits;
    +
    +   private transient KafkaCommitCallback offsetCommitCallback;
    --- End diff --
    
    Sounds fair, I'll include a javadoc as well a notice about the 
thread-safety contract as you suggested.


> Kafka connector needs to expose metrics for failed/successful offset commits 
> in the Kafka Consumer callback
> -----------------------------------------------------------------------------------------------------------
>
>                 Key: FLINK-6998
>                 URL: https://issues.apache.org/jira/browse/FLINK-6998
>             Project: Flink
>          Issue Type: Improvement
>          Components: Kafka Connector
>            Reporter: Zhenzhong Xu
>            Assignee: Zhenzhong Xu
>
> Propose to add "kafkaCommitsSucceeded" and "kafkaCommitsFailed" metrics in 
> KafkaConsumerThread class.



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)

Reply via email to