-
Notifications
You must be signed in to change notification settings - Fork 13.3k
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-36149][state] Make the RocksdbCompactFilter parameters take effect directly at the statebackend level #25257
Conversation
@flinkbot run azure |
@flinkbot run azure |
13d41d7
to
4f327eb
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.
@lexluo09 thanks for contributing this! Since the scope of the pr changes, the module name in the commit msg should be updated as well(table
-> state
).
...nner/src/main/java/org/apache/flink/table/planner/plan/nodes/exec/stream/StreamExecRank.java
Outdated
Show resolved
Hide resolved
cc @Zakelly @masteryhx since you're the expert in this area, would one of you help the review if you have time? |
2a62723
to
d664f51
Compare
Thank you for helping with the review. I have made the necessary changes based on your feedback. |
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.
@lexluo09 Thanks for the PR! Please find my comments below:
.../main/java/org/apache/flink/contrib/streaming/state/ttl/RocksDbTtlCompactFiltersManager.java
Outdated
Show resolved
Hide resolved
And BTW, you should run |
b88e876
to
d6bf5fe
Compare
@Zakelly Thank you for your suggestion. I have executed the command to generate the documentation for the configuration as per your recommendation. |
The CI failed. Would you mind fixing this? |
ok |
@flinkbot run azure |
@flinkbot run azure |
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.
@lexluo09 Sorry for the late reply, overall looks good. Only one minor thing:
flink-core/src/main/java/org/apache/flink/api/common/state/StateTtlConfig.java
Show resolved
Hide resolved
c2d650a
to
b8522a2
Compare
Thank you for taking the time to help review the code. It has been fixed now. |
@flinkbot run azure |
1 similar comment
@flinkbot run azure |
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.
How about this?
flink-core/src/main/java/org/apache/flink/api/common/state/StateTtlConfig.java
Outdated
Show resolved
Hide resolved
flink-core/src/main/java/org/apache/flink/api/common/state/StateTtlConfig.java
Outdated
Show resolved
Hide resolved
Very professional, thank you for your suggestions. |
@lexluo09 |
Yes, I also think this is reasonable. The DEFAULT_PERIODIC_COMPACTION_TIME will still be retained. |
@flinkbot run azure |
@Zakelly Thank you for taking the time to review. I have made all the necessary changes. When you have the time, please kindly take another look. Thank you for your assistance. |
@flinkbot run azure |
@Zakelly The CI tests have passed. When you have time, could you please take a look? Thank you for your assistance. |
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.
Not important things as below:
And @fredia would please do a double check on this?
flink-core/src/main/java/org/apache/flink/api/common/state/StateTtlConfig.java
Outdated
Show resolved
Hide resolved
flink-core/src/main/java/org/apache/flink/api/common/state/StateTtlConfig.java
Outdated
Show resolved
Hide resolved
c8c89bf
to
09b34d0
Compare
…fect directly at the statebackend level.
@flinkbot run azure |
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
@flinkbot run azure |
Thank you for helping with the review. |
@flinkbot run azure |
What is the purpose of the change
In Rank operators, add the cleanupInRocksdbCompactFilter(queryTimeAfterNumEntries) parameter setting, allowing adjustment based on the size of user state to enhance performance.
Brief change log
Verifying this change
This change is already covered by existing tests, such as AppendOnlyFirstNFunctionTest、TopNFunctionTestBase.
Does this pull request potentially affect one of the following parts:
@Public(Evolving)
: (no)Documentation