-
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-33980][core] Reorganize job configuration #24025
Conversation
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.
The current description for the config option StateChangelogOptions.PERIODIC_MATERIALIZATION_INTERVAL in FLINK states that "The periodic materialization will be disabled when the value is negative."
However, FLINK does not allow setting a negative Duration value, which causes errors during the conversion between String types.
After discussing with @masteryhx offline, he will soon propose a fix to address this issue.
Before his solution is implemented, I have submitted a hotfix commit b99f1c9 to resolve related test failures. Once the fix is in place, this commit will be removed.
@zhuzhurk Could you help to review this PR ? Thanks. |
0d717f1
to
b6c1a78
Compare
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 @JunRuiLee for the contribution!
FLINK-33935 improves 2 options related to statebackend and checkpoint. It is merged,and it has a little conflicts with this PR, please address it in your free time, thanks~
b6c1a78
to
b608a21
Compare
Thanks @1996fanrui for the kind reminder. I have rebased this pull request and resolved the conflicts. |
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 @JunRuiLee for the quick update!
I left some comments, please take a look in your free time, thanks~
flink-core/src/main/java/org/apache/flink/api/common/cache/DistributedCache.java
Show resolved
Hide resolved
flink-core/src/main/java/org/apache/flink/api/common/ExecutionConfig.java
Outdated
Show resolved
Hide resolved
...-streaming-java/src/main/java/org/apache/flink/streaming/api/graph/StreamGraphGenerator.java
Outdated
Show resolved
Hide resolved
...-streaming-java/src/main/java/org/apache/flink/streaming/api/graph/StreamGraphGenerator.java
Outdated
Show resolved
Hide resolved
...ava/src/main/java/org/apache/flink/streaming/api/environment/StreamExecutionEnvironment.java
Outdated
Show resolved
Hide resolved
b608a21
to
4363bea
Compare
Thanks @1996fanrui for the quick reviews, I've updated this pr, PTAL~ |
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 @JunRuiLee for the quick update!
I only left one comment, please take a look in your free time, 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 for the quick update!
LGTM assuming the CI is green.
243a9e0
to
e89a6dd
Compare
Updated this PR with a rebase onto the master branch and resolved conflicts. |
Hi @JunRuiLee , would you mind rebaseing the master branch to fix the CI? thanks~ |
Hi @1996fanrui , I am currently waiting for the merge of #24046. Once that has been completed, I'll go ahead and remove the hotfix commit 6ba47965e234b6524f10dbe0d933e5e5dff6627, and then I will rebase onto the updated master branch. Thanks for your patience! |
Hi, @JunRuiLee, #24046 has been merged. |
e89a6dd
to
254b8f8
Compare
Thanks @masteryhx for the heads up, I've updated the PR following the merge. |
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 @JunRuiLee for the rebase!
Hi @zhuzhurk , would you like to review this PR as well? If no any comments, I will merge this PR next Monday.
Thanks for helping with the review! @1996fanrui |
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 for creating this PR! @JunRuiLee
Nice work. It should be tough since I can see many struggle to ensure the compatibility.
I have a couple of comments. PTAL.
...ava/src/main/java/org/apache/flink/streaming/api/environment/StreamExecutionEnvironment.java
Show resolved
Hide resolved
...src/test/java/org/apache/flink/test/checkpointing/CheckpointAfterAllTasksFinishedITCase.java
Outdated
Show resolved
Hide resolved
...src/test/java/org/apache/flink/streaming/api/environment/StreamExecutionEnvironmentTest.java
Show resolved
Hide resolved
...src/test/java/org/apache/flink/streaming/api/environment/StreamExecutionEnvironmentTest.java
Show resolved
Hide resolved
flink-streaming-java/src/main/java/org/apache/flink/streaming/api/graph/StreamGraph.java
Outdated
Show resolved
Hide resolved
flink-runtime/src/main/java/org/apache/flink/runtime/dispatcher/Dispatcher.java
Outdated
Show resolved
Hide resolved
...treaming-java/src/main/java/org/apache/flink/streaming/api/environment/CheckpointConfig.java
Show resolved
Hide resolved
...ache/flink/streaming/api/environment/StreamExecutionEnvironmentComplexConfigurationTest.java
Outdated
Show resolved
Hide resolved
...ache/flink/streaming/api/environment/StreamExecutionEnvironmentComplexConfigurationTest.java
Outdated
Show resolved
Hide resolved
...src/test/java/org/apache/flink/streaming/api/environment/StreamExecutionEnvironmentTest.java
Outdated
Show resolved
Hide resolved
31ecf64
to
64930dc
Compare
Thanks @zhuzhurk and @1996fanrui for your reviews, I've updated this pr accordingly, PTAL. |
64930dc
to
e026c52
Compare
...src/test/java/org/apache/flink/streaming/api/environment/StreamExecutionEnvironmentTest.java
Outdated
Show resolved
Hide resolved
flink-streaming-java/src/main/java/org/apache/flink/streaming/api/graph/StreamGraph.java
Outdated
Show resolved
Hide resolved
5d30092
to
e9ffc30
Compare
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 for addressing all the comments. @JunRuiLee
LGTM.
e9ffc30
to
d2ecce6
Compare
…nt, ExecutionConfig and CheckpointConfig.
…y from job configuration.
…ge from job configuration.
d2ecce6
to
8ce6e37
Compare
What is the purpose of the change
Reorganize job configuration
Brief change log
Verifying this change
This change is already covered by existing tests.
Does this pull request potentially affect one of the following parts:
@Public(Evolving)
: (yes / no)Documentation