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

[Bug] The assigner is not ready to offer finished split information, this should not be called

Open which520 opened this issue 2 years ago • 2 comments

Search before asking

  • [X] I searched in the issues and found nothing similar.

Flink version

1.14.6

Flink CDC version

2.4.2

Database and its version

mysql5.7

Minimal reproduce step

使用cdc同步过程中,同步一段时间后,然后使用添加新的表,从保存点的位置恢复会报错,去掉新加的表后又能从保存点正常恢复:

What did you expect to see?

能够正常的从保存点恢复,然后添加新的表

What did you see instead?

org.apache.flink.util.FlinkRuntimeException: The assigner is not ready to offer finished split information, this should not be called at com.ververica.cdc.connectors.mysql.source.assigners.MySqlSnapshotSplitAssigner.getFinishedSplitInfos(MySqlSnapshotSplitAssigner.java:355) ~[blob_p-b0743893e0f56b7652b123057d70a4fdab65bf0a-8411938ca8b733928f6654b45cc4003d:?] at com.ververica.cdc.connectors.mysql.source.assigners.MySqlHybridSplitAssigner.getFinishedSplitInfos(MySqlHybridSplitAssigner.java:139) ~[blob_p-b0743893e0f56b7652b123057d70a4fdab65bf0a-8411938ca8b733928f6654b45cc4003d:?] at com.ververica.cdc.connectors.mysql.source.enumerator.MySqlSourceEnumerator.sendBinlogMeta(MySqlSourceEnumerator.java:251) ~[blob_p-b0743893e0f56b7652b123057d70a4fdab65bf0a-8411938ca8b733928f6654b45cc4003d:?] at com.ververica.cdc.connectors.mysql.source.enumerator.MySqlSourceEnumerator.handleSourceEvent(MySqlSourceEnumerator.java:145) ~[blob_p-b0743893e0f56b7652b123057d70a4fdab65bf0a-8411938ca8b733928f6654b45cc4003d:?]

Anything else?

No response

Are you willing to submit a PR?

  • [ ] I'm willing to submit a PR!

which520 avatar Jan 01 '24 15:01 which520

image

which520 avatar Jan 02 '24 03:01 which520

Please make sure that the scan.newly-added-table.enabled has been opened.

If the problem still exists, please raise an issue in Apache Flink jira and mark it as a Flink CDC Component. Thanks.

ruanhang1993 avatar Feb 04 '24 09:02 ruanhang1993