apache / apache/seatunnel

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

Open
#10,248 4 comments 0 reactions 1 assignee Claimed by @zhangshenghang View on GitHub
help wanted
Dominant language
Java
Stars
9.7k
Forks
2.4k
Avg merge
3d 9h
Merged PRs (30d)
204

Description

### Search before asking

- [x] I had searched in the [feature](https://github.com/apache/seatunnel/issues?q=is%3Aissue+label%3A%22Feature%22) 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

- [x] I agree to follow this project's [Code of Conduct](https://www.apache.org/foundation/policies/conduct)

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.