Skip to content

Conversation

@wanglijie95
Copy link
Contributor

What is the purpose of the change

Support flexible subpartion range division

Verifying this change

Add some 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): (no)
  • The serializers: (no)
  • The runtime per-record code paths (performance sensitive): (no)
  • Anything that affects deployment or recovery: JobManager (and its components), Checkpointing, Kubernetes/Yarn, ZooKeeper: (no)
  • The S3 file system connector: (no)

Documentation

  • Does this pull request introduce a new feature? (no)
  • If yes, how is the feature documented? (not applicable)

@flinkbot
Copy link
Collaborator

flinkbot commented Oct 26, 2022

CI report:

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

@wanglijie95 wanglijie95 force-pushed the FLINK-29665 branch 2 times, most recently from 8bc54ab to 80e07f5 Compare November 1, 2022 06:54
@wanglijie95 wanglijie95 force-pushed the FLINK-29665 branch 2 times, most recently from dffff61 to 94c09a9 Compare December 26, 2022 13:39
@wanglijie95
Copy link
Contributor Author

Thanks for review @zhuzhurk. I 've addressed all comments, please take a look.

return isDynamicGraph
? intermediateResult.getPartitions()[partitionIndex].getNumberOfSubpartitions()
: IntermediateResultPartition.NUM_SUBPARTITIONS_UNKNOWN;
// Note that this method should only be called for dynamic graph
Copy link
Contributor

Choose a reason for hiding this comment

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

Better to explain why, e.g. this method is used to compute which sub-partitions a consumer vertex should consume, however, for non-dynamic graph it is not needed, and the number of sub-partitions is not decided at this stage, due to the execution edge are not created.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Added

Copy link
Contributor

@zhuzhurk zhuzhurk left a comment

Choose a reason for hiding this comment

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

LGTM.

@wanglijie95 wanglijie95 deleted the FLINK-29665 branch December 29, 2022 12:59
chucheng92 pushed a commit to chucheng92/flink that referenced this pull request Feb 3, 2023
akkinenivijay pushed a commit to krisnaru/flink that referenced this pull request Feb 11, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants