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-34371][runtime] Support EndOfStreamTrigger and isOutputOnlyAfterEndOfStream operator attribute to optimize task deployment #24272

Closed
wants to merge 10 commits into from

Conversation

yunfengzhou-hub
Copy link
Contributor

What is the purpose of the change

This pull request adds support for EndOfStreamTrigger and isOutputOnlyAfterEndOfStream operator attribute to optimize task deployment.

Brief change log

  • Introduces OperatorAttributes with isOutputOnlyAfterEndOfStream attribute
  • Schedules operators with isOutputOnlyAfterEndOfStream=true to run in blocking mode
  • Make WindowOperator and StreamSortOperator return isOutputOnlyAfterEndOfStream=true in certain cases

Verifying this change

  • This change adds unit tests for OperatorAttributes and the corresponding blocking mode changes.
  • The change on WindowOperator and StreamSortOperator is covered by existing tests.

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

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

Documentation

  • Does this pull request introduce a new feature? yes
  • If yes, how is the feature documented? JavaDocs

@flinkbot
Copy link
Collaborator

flinkbot commented Feb 6, 2024

CI report:

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

Copy link
Contributor

@Sxnan Sxnan left a comment

Choose a reason for hiding this comment

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

@yunfengzhou-hub Thanks for the PR! Just left some comments below.

@yunfengzhou-hub
Copy link
Contributor Author

Thanks for the comments @Sxnan @mohitjain2504 . I have updated the PR according to the comments.

@Sxnan
Copy link
Contributor

Sxnan commented Feb 21, 2024

@yunfengzhou-hub Thanks for the update. LGTM!

Copy link
Contributor

@WencongLiu WencongLiu left a comment

Choose a reason for hiding this comment

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

I've left some comments. PTAL. 😄

Copy link
Contributor

@xintongsong xintongsong left a comment

Choose a reason for hiding this comment

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

LGTM

@mohitjain2504
Copy link

What is the reason for closing? Did I miss something?

@xintongsong
Copy link
Contributor

@mohitjain2504
It's merged.

hanyuzheng7 pushed a commit to hanyuzheng7/flink that referenced this pull request May 6, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
6 participants