Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[FLINK-24651][iteration] Add bounded all-round iteration #13

Closed
wants to merge 4 commits into from

Conversation

gaoyunhaii
Copy link
Contributor

This PR adds the support of the bounded all-round iteration.

Copy link

@guoweiM guoweiM left a comment

Choose a reason for hiding this comment

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

Thanks @gaoyunhaii for opening the pr. I have a little question about building the criteria sub-topology.
In the pr you let the "Head" and "Tail" connect together by introducing a fake operator. Maybe we could the "Head" connect to the "Criteria" operator, which returning by the developer. I think it could avoid introducing a fake operator. Correct me if I miss something.

Thanks

@gaoyunhaii gaoyunhaii force-pushed the i7_add_bounded_all_round branch 2 times, most recently from 4ba3606 to 5a8880b Compare October 25, 2021 15:16

@Test(timeout = 60000)
public void testSyncVariableOnlyBoundedIteration() throws Exception {
try (MiniCluster miniCluster = new MiniCluster(createMiniClusterConfiguration(2, 2))) {
Copy link

Choose a reason for hiding this comment

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

Maybe you could use a same minicluster for all the test to reduce the time used in the tests.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Similarly I extract the process of minicluster

Copy link

Choose a reason for hiding this comment

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

OK. But I think you could create a jira to track this improvement.

*/
public class BoundedAllRoundStreamIterationITCase {

private static BlockingQueue<OutputRecord<Integer>> result = new LinkedBlockingQueue<>();
Copy link

Choose a reason for hiding this comment

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

This field could be final

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I also change this test to SharedObject


@Test
public void testTerminationCriteria() throws Exception {
try (MiniCluster miniCluster = new MiniCluster(createMiniClusterConfiguration(2, 2))) {
Copy link

Choose a reason for hiding this comment

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

see above

@gaoyunhaii gaoyunhaii changed the title [FLINK-7][iteration] Add bounded all-round iteration [FLINK-24651][iteration] Add bounded all-round iteration Oct 30, 2021
@gaoyunhaii
Copy link
Contributor Author

Very thanks @guoweiM for the review! will merge~

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants