apache/seatunnel

[Bug][Core][Metric] sinkwritecount miscalculation: duplicate table names cause repeated counting

Open

#10248 opened on Dec 25, 2025

View on GitHub
 (4 comments) (0 reactions) (1 assignee)Java (6,897 stars) (1,432 forks)batch import
help wanted

Description

Search before asking

  • I had searched in the feature and found no similar feature requirement.

Description

当有多个sink并且表名相同(table_name)的时候, 统计数据中sinkwritecount会重复计算, 比如sink一个是kafka一个是es,一个是mysql, 表名相同的情况下,source读到1条数据, 那么sinkwritecount中就会是 table_name:2, database.table_name:1, 如何把每个sink区分开呢?

Usage Scenario

对存储的数据进行统计

Related issues

No response

Are you willing to submit a PR?

  • Yes I am willing to submit a PR!

Code of Conduct

Contributor guide