DTStack / DTStack/chunjun

mysql轮询读取数据时,第一个切片的InputFormat中会重复读取数据

Open
#992 1 comment 0 reactions 0 assignees View on GitHub
bug
Dominant language
Java
Stars
4.1k
Forks
1.7k
PR merge metrics
No merged PRs in 30d

Description

**Describe the bug**
当source或reader并行度>1,轮询读取数据时(例如:MySQL),第一个切片的InputFormat中会重复读取数据。

**Screenshots**
Chunjun Master分支代码中当source或reader并行度>1,轮询读取数据(例如:MySQL)时,会出现数据重复读取的情况。例如:设置mysql source的并行度为2时,mysql指定表此时只有2条数据,但是在Flink web UI中可以很明显的看见数据读取量不正确,经控制台打印分析,只有第一个子任务会重复读取数据:
![image](https://user-images.githubusercontent.com/51312128/175223790-08995fa0-4fe2-469f-a21b-85228d5a5b02.png)
![image](https://user-images.githubusercontent.com/51312128/175223811-1dadd79e-994d-4759-aa10-a6d1793ea612.png)
![image](https://user-images.githubusercontent.com/51312128/175223827-5e515abf-f0ef-4199-96f3-90c7b330f665.png)

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.