-
Notifications
You must be signed in to change notification settings - Fork 13k
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-32809][yarn] Fixes YarnClusterDescriptor#isArchiveOnlyIncluded… #23191
Conversation
Hi @1996fanrui would you mind helping review this PR in your free time? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hi @qinf , thanks for your fix.
Overall is good, I have left a few comments, please take a look, thanks~
flink-yarn/src/main/java/org/apache/flink/yarn/YarnClusterDescriptor.java
Outdated
Show resolved
Hide resolved
flink-yarn/src/main/java/org/apache/flink/yarn/YarnClusterDescriptor.java
Outdated
Show resolved
Hide resolved
flink-yarn/src/test/java/org/apache/flink/yarn/YarnClusterDescriptorTest.java
Outdated
Show resolved
Hide resolved
flink-yarn/src/test/java/org/apache/flink/yarn/YarnClusterDescriptorTest.java
Outdated
Show resolved
Hide resolved
Hi @qinf , could you update the commit message to It's more specific, and everyone can see what doesn't meet expectations. |
…-archives configures the directory
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks @qinf for the quick update!
The change LGTM!
Hi @RocMarshal , would you mind helping take a look this PR in your free time as well? thanks~
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks @qinf for the contribution and @1996fanrui for the review.
Looks good to me on the whole just left a few of comment.
PTAL in your free time.
.map(File::getName) | ||
.map(String::toLowerCase) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Could these two lines be inlined?
Because there's no filters between the two maps
name.endsWith(".tar.gz") | ||
|| name.endsWith(".tar") | ||
|| name.endsWith(".tgz") | ||
|| name.endsWith(".dst") | ||
|| name.endsWith(".jar") | ||
|| name.endsWith(".zip")) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is there a possibility of frequent changes in the suffix format here?
If so, would you consider introducing a parameter to specify the suffix format?
Please correct me if I'm wrong in my limited read.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@RocMarshal The archive types have not changed for over 2 years, maybe it is a good time to do this when there is a new archive type need to add here.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM +1. Thanks @qinf
CC @1996fanrui
Thanks @RocMarshal for the review, merging~ |
…-archives configures the directory (apache#23191)
…InShipArchiveFiles dose not work as expected
What is the purpose of the change
(For example: This pull request makes task deployment go through the blob server, rather than through RPC. That way we avoid re-transferring them on each deployment (during recovery).)
Brief change log
Verifying this change
This change added tests and can be verified as follows:
YarnConfigOptions.SHIP_ARCHIVES
only support archive files *Does this pull request potentially affect one of the following parts:
@Public(Evolving)
: (no)Documentation