starryCoder commented on code in PR #3854:
URL: https://github.com/apache/hertzbeat/pull/3854#discussion_r2538172512
##########
hertzbeat-common/src/main/java/org/apache/hertzbeat/common/queue/impl/KafkaCommonDataQueue.java:
##########
@@ -195,13 +195,8 @@ public void sendMetricsData(CollectRep.MetricsData
metricsData) {
@Override
public void sendMetricsDataToStorage(CollectRep.MetricsData metricsData) {
- if (metricsDataProducer != null) {
- ProducerRecord<Long, CollectRep.MetricsData> record =
- new ProducerRecord<>(kafka.getMetricsDataToStorageTopic(),
metricsData);
- metricsDataProducer.send(record);
- } else {
- log.error("metricsDataProducer is not enabled");
- }
+ // The message is already sent via sendMetricsData since
metricsDataToStorageConsumer
Review Comment:
Let me try to fix this error now.
--
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: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]