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-20947][planner] Fix idle source doesn't work when pushing watermark into the source #14679

Merged
merged 3 commits into from
Jan 22, 2021

Conversation

fsk119
Copy link
Member

@fsk119 fsk119 commented Jan 18, 2021

What is the purpose of the change

Fix idle source doesn't work when pushing watermark strategy into table source.

Brief change log

  • Fix the bug.

Verifying this change

This change added tests and can be verified as follows:

  • Idle source plan test.
  • Idle source IT cases.

Does this pull request potentially affect one of the following parts:

  • Dependencies (does it add or upgrade a dependency): (yes / no)
  • The public API, i.e., is any changed class annotated with @Public(Evolving): (yes / no)
  • The serializers: (yes / no / don't know)
  • The runtime per-record code paths (performance sensitive): (yes / no / don't know)
  • Anything that affects deployment or recovery: JobManager (and its components), Checkpointing, Kubernetes/Yarn/Mesos, ZooKeeper: (yes / no / don't know)
  • The S3 file system connector: (yes / no / don't know)

Documentation

  • Does this pull request introduce a new feature? (yes / no)

@flinkbot
Copy link
Collaborator

flinkbot commented Jan 18, 2021

Thanks a lot for your contribution to the Apache Flink project. I'm the @flinkbot. I help the community
to review your pull request. We will use this comment to track the progress of the review.

Automated Checks

Last check on commit d21a2ca (Fri May 28 07:12:32 UTC 2021)

Warnings:

  • No documentation files were touched! Remember to keep the Flink docs up to date!

Mention the bot in a comment to re-run the automated checks.

Review Progress

  • ❓ 1. The [description] looks good.
  • ❓ 2. There is [consensus] that the contribution should go into to Flink.
  • ❓ 3. Needs [attention] from.
  • ❓ 4. The change fits into the overall [architecture].
  • ❓ 5. Overall code [quality] is good.

Please see the Pull Request Review Guide for a full explanation of the review process.


The Bot is tracking the review progress through labels. Labels are applied according to the order of the review items. For consensus, approval by a Flink committer of PMC member is required Bot commands
The @flinkbot bot supports the following commands:

  • @flinkbot approve description to approve one or more aspects (aspects: description, consensus, architecture and quality)
  • @flinkbot approve all to approve all aspects
  • @flinkbot approve-until architecture to approve everything until architecture
  • @flinkbot attention @username1 [@username2 ..] to require somebody's attention
  • @flinkbot disapprove architecture to remove an approval you gave earlier

@flinkbot
Copy link
Collaborator

flinkbot commented Jan 18, 2021

CI report:

Bot commands The @flinkbot bot supports the following commands:
  • @flinkbot run travis re-run the last Travis build
  • @flinkbot run azure re-run the last Azure build

Copy link
Member

@wuchong wuchong left a comment

Choose a reason for hiding this comment

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

Thanks for the work.

I think we need an IT case for Kafka to verify the pushed idle watermark strategy can work well. You can add a test in KafkaTableITCase with:

  • prepare 2 partitions, each with several messages. The last event time in the first partition is 2021-01-13 20:00:00, the last event time in the second partition is 2021-01-13 19:30:00.
  • apply window query on the source with tumbling 1 hour
  • the query should have output with window [19:00, 20:00) which means the watermark has reached 20:00 (before the fix, the query shouldn't have output)

If we have an IT case for Kafka, I think we don't need to adapt the TestValues source. The changes looks very complex and hard to maintain in the future.

@fsk119
Copy link
Member Author

fsk119 commented Jan 22, 2021

Thanks for your tips. I think I have already resolved your concerns.

Copy link
Member

@wuchong wuchong left a comment

Choose a reason for hiding this comment

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

Great work! The pull request looks good to me now.

Could you also open a pull request for release-1.12 branch?

@wuchong wuchong merged commit 90e680c into apache:master Jan 22, 2021
YuvalItzchakov pushed a commit to YuvalItzchakov/flink that referenced this pull request Jan 23, 2021
@fsk119 fsk119 deleted the FLINK-20947 branch November 22, 2021 07:44
jnh5y pushed a commit to jnh5y/flink that referenced this pull request Dec 18, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
4 participants