baomingyu commented on code in PR #5552: URL: https://github.com/apache/inlong/pull/5552#discussion_r945653037
########## inlong-dataproxy/dataproxy-source/src/main/java/org/apache/inlong/dataproxy/sink/TubeSink.java: ########## @@ -121,6 +133,10 @@ public void configure(Context context) { // create producer holder producerHolder = new TubeProducerHolder(getName(), usedMasterAddr, configManager.getMqClusterConfig()); + // get statistic configure items + maxMonitorCnt = context.getInteger("max-monitor-cnt", 300000); Review Comment: move "max-monitor-cnt" to ConfigConstants class ########## inlong-dataproxy/dataproxy-source/src/main/java/org/apache/inlong/dataproxy/sink/TubeSink.java: ########## @@ -338,8 +385,9 @@ public void run() { } } if (LOG_SINK_TASK_PRINTER.shouldPrint()) { - logger.error("Sink task fail to send the message, finished =" + sendFinished - + ",sink.name=" + Thread.currentThread().getName() + logger.error("Sink task fail to send the message, finished =" + + bChangedInflightValue + ",sink.name=" + + Thread.currentThread().getName() Review Comment: suggest use {} as a placeholder ########## inlong-dataproxy/dataproxy-source/src/main/java/org/apache/inlong/dataproxy/sink/TubeSink.java: ########## @@ -317,19 +363,20 @@ public void run() { if (StringUtils.isBlank(topic)) { blankTopicDiscardMsgCnt.incrementAndGet(); takenMsgCnt.decrementAndGet(); + monitorIndexExt.incrementAndGet("TUBE_SINK_DROPPED"); Review Comment: "TUBE_SINK_DROPPED" as a static field -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: commits-unsubscr...@inlong.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org