Skip to content

Commit

Permalink
fix: SourceExactlyMetric failed to instantiate without inlong.metric.…
Browse files Browse the repository at this point in the history
…labels set
  • Loading branch information
PeterZh6 committed Sep 19, 2024
1 parent b7cc498 commit 865ec15
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -236,7 +236,7 @@ public void open(Configuration parameters) throws Exception {
this.executor = Executors.newSingleThreadExecutor(threadFactory);
this.handover = new Handover();
this.changeConsumer = new DebeziumChangeConsumer(handover);
if (sourceExactlyMetric == null) {
if (sourceExactlyMetric == null && metricOption != null) {
sourceExactlyMetric = new SourceExactlyMetric(metricOption, getRuntimeContext().getMetricGroup());
}
if (deserializer instanceof RowDataDebeziumDeserializeSchema) {
Expand Down

0 comments on commit 865ec15

Please sign in to comment.