flink-cdc icon indicating copy to clipboard operation
flink-cdc copied to clipboard

Clean up the deleted table information when restarting the task

Open fuyun2024 opened this issue 4 years ago • 5 comments

Describe the bug I have a flink mysql cdc task, which is reading binlog data of A、B、C table. I stopped the task and changed the configuration to read-only access to table A. Restart the task, Now it is true that it only reads the data of table A, but the information of table B and C still exists in the code variable.

Environment :

  • Flink version : flink 1.3.5
  • Flink CDC version: 2.2-SNAPSHOT
  • Database and version: mysql 5.7

To Reproduce Steps to reproduce the behavior:

  1. Thes test data :
  2. The test code :
  3. The error :

Additional Description If applicable, add screenshots to help explain your problem.

fuyun2024 avatar Mar 05 '22 14:03 fuyun2024

@leonardBang Do we need this optimization? If so, please assign it to me .

fuyun2024 avatar Mar 05 '22 14:03 fuyun2024

I think we need this feature but not in 2.2 version, we need to consider newly added tables feature when implement this, please also take a look @zhjwpku

leonardBang avatar Mar 15 '22 10:03 leonardBang

I think we need this feature but not in 2.2 version, we need to consider newly added tables feature when implement this, please also take a look @zhjwpku

yeah, we definitely need this feature, will keep an eye on this 🧐

zhjwpku avatar Mar 15 '22 13:03 zhjwpku

@leonardBang @fuyun2024 are we getting any progress?

zmzeng avatar Jan 30 '23 01:01 zmzeng

Closed by #1134

ruanhang1993 avatar Jun 14 '23 06:06 ruanhang1993