-
Notifications
You must be signed in to change notification settings - Fork 13.8k
[FLINK-17865][checkpoint] Increase default size of 'state.backend.fs.memory-threshold' #12282
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
Conversation
|
Thanks a lot for your contribution to the Apache Flink project. I'm the @flinkbot. I help the community Automated ChecksLast check on commit 67bc5db (Thu May 21 13:15:22 UTC 2020) Warnings:
Mention the bot in a comment to re-run the automated checks. Review Progress
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 commandsThe @flinkbot bot supports the following commands:
|
81a8f34 to
55c8d28
Compare
…memory-threshold'
55c8d28 to
adda0dd
Compare
|
My azure CI pipeline has run successfully twice: my-build-1 and my-build-2 Current CI in this PR failed due to FLINK-16572 @flinkbot run azure |
klion26
left a comment
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.
@Myasuka thanks for your contribution, overall this LGTM, just has one minor question about the test case.
| <td>The minimum size of state data files. All state chunks smaller than that are stored inline in the root checkpoint metadata file.</td> | ||
| <td style="word-wrap: break-word;">20 kb</td> | ||
| <td>MemorySize</td> | ||
| <td>The minimum size of state data files. All state chunks smaller than that are stored inline in the root checkpoint metadata file. The max memory threshold for this configuration is 1MB.</td> |
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.
Good to add the upper limit here 👍
| final Path expectedCheckpointsPath = new Path(checkpointDir); | ||
| final Path expectedSavepointsPath = new Path(savepointDir); | ||
| final int threshold = 1000000; | ||
| final MemorySize threshold = MemorySize.parse("900kb"); |
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.
Do you think we need to add a test case to verify the default value of state.backend.fs.memory-threshold(do not set this key, and verify the result of getMinFileSizeThreshold() is the expected value)
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.
I think current test_get_min_file_size_threshold should already verify it.
|
Another successful run in my local branch: my-build |
|
@flinkbot run azure |
StephanEwen
left a comment
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.
I wonder if we can avoid all the casts to int in the code. Especially before validating the value. Otherwise, we can get silent errors due to the downcast.
At the very least, we should use MathUtils.checkedDowncast.
flink-runtime/src/main/java/org/apache/flink/runtime/state/filesystem/FsStateBackend.java
Outdated
Show resolved
Hide resolved
|
Looks good to me, +1 to merge this |
carp84
left a comment
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.
+1. Thanks for the contribution @Myasuka !
Could you also submit a PR for release-1.11 as a double check against nightly run? Thanks.
|
The e2e tests (#12373) for release-1.11 passed thus I will merge the changes. Thanks. |
What is the purpose of the change
Increase the default value of
state.backend.fs.memory-thresholdfrom1Kto20Kas thread discussed.Brief change log
1kto20kVerifying this change
This change is a trivial rework / code cleanup without any test coverage.
Does this pull request potentially affect one of the following parts:
@Public(Evolving): noDocumentation