Skip to content

Conversation

@stevenzwu
Copy link
Contributor

switch from BoundedTestSource to simple fromCollection for TestFlinkIcebergSink#testTwoSinksInDisjointedDAG. The purpose of this test method is that we can construct two Iceberg sinks in the same job/DAG with different UIDs. we don't need the custom source BoundedTestSource for this purpose.

fix #3112

…tFlinkIcebergSink#testTwoSinksInDisjointedDAG. The purpose of this test method is that we can constrcut two Iceberg sinks in the same job/DAG with different UIDs. we don't need the custom source BoundedTestSource for this purpose.
@github-actions github-actions bot added the flink label Nov 9, 2021
@stevenzwu
Copy link
Contributor Author

@kbendick @openinx can you help review?

Copy link
Contributor

@kbendick kbendick left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice! This is a solid work around to the original problem.

In Flink 1.14 (I believe), we won't have the issue that sources can shut down before final checkpoint in a batch job anymore. IIRC that has been fixed.

But as you mentioned, we're not testing that. Just that we can have two Iceberg Flink sinks in one job.

Thanks @stevenzwu!

@rdblue rdblue merged commit 2d102f5 into apache:master Nov 14, 2021
Initial-neko pushed a commit to Initial-neko/iceberg that referenced this pull request Nov 23, 2021
apache#3514)

The purpose of this test method is that we can construct two Iceberg sinks in the same job/DAG with different UIDs. The custom source BoundedTestSource is not needed for this purpose.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Flink: fix the deadlock of waiting for extra checkpoints in BoundedTestSource with TestFlinkIcebergSink.testTwoSinksInDisjointedDAG

3 participants