-
Notifications
You must be signed in to change notification settings - Fork 13.2k
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-20496][state backends] RocksDB partitioned index/filters option. #14341
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 b97a26e (Tue Dec 08 19:03:11 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:
|
e30202a
to
3058421
Compare
@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.
Thanks for your contribution! I think we could separate this PR into two commits:
- one commit to introduce partitioned index/filter.
- one commit to introduce settings of metadata block size.
...rocksdb/src/main/java/org/apache/flink/contrib/streaming/state/RocksDBResourceContainer.java
Outdated
Show resolved
Hide resolved
docs/_includes/generated/rocksdb_configurable_configuration.html
Outdated
Show resolved
Hide resolved
@Myasuka Should I separate into two commits and do a force push? |
@liuyufei9527 I suggest to separate this PR into two commits. |
3058421
to
9cc5abe
Compare
@Myasuka Thanks for reviewing, I had update a new version, please take another look. |
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.
Sorry for late review after some internal busy time, please consider to refactor your PR according to the comments, and remember to update the web content.
...ackend-rocksdb/src/main/java/org/apache/flink/contrib/streaming/state/PredefinedOptions.java
Outdated
Show resolved
Hide resolved
...cksdb/src/main/java/org/apache/flink/contrib/streaming/state/RocksDBConfigurableOptions.java
Outdated
Show resolved
Hide resolved
...rocksdb/src/main/java/org/apache/flink/contrib/streaming/state/RocksDBResourceContainer.java
Outdated
Show resolved
Hide resolved
...d-rocksdb/src/main/java/org/apache/flink/contrib/streaming/state/RocksDBSharedResources.java
Outdated
Show resolved
Hide resolved
6aca99b
to
79c45e0
Compare
@flinkbot run azure |
Your CI was broken due to the bad format, please resubmit your PR with correct format with maven spotless plugin. Since you actually split two commits in one PR, please use git fixup to point out which newer commit is to fix previous one. You could also remain the PR as only two commits with force push. |
dd0c578
to
4a0e89b
Compare
@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.
@carp84 do you have more comments?
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.
@liuyufei9527 Thanks for the contribution, and sorry for the late response, please see my inline comments.
What's more, somehow I cannot make more than one code suggestions in this review, so there're more coming.
...ackend-rocksdb/src/main/java/org/apache/flink/contrib/streaming/state/PredefinedOptions.java
Outdated
Show resolved
Hide resolved
...rocksdb/src/main/java/org/apache/flink/contrib/streaming/state/RocksDBResourceContainer.java
Outdated
Show resolved
Hide resolved
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.
@liuyufei9527 This is the 2nd-round review, please check and let me know your thoughts. Thanks.
...rocksdb/src/main/java/org/apache/flink/contrib/streaming/state/RocksDBResourceContainer.java
Outdated
Show resolved
Hide resolved
...rocksdb/src/main/java/org/apache/flink/contrib/streaming/state/RocksDBResourceContainer.java
Show resolved
Hide resolved
...rocksdb/src/main/java/org/apache/flink/contrib/streaming/state/RocksDBResourceContainer.java
Outdated
Show resolved
Hide resolved
...sdb/src/test/java/org/apache/flink/contrib/streaming/state/RocksDBResourceContainerTest.java
Outdated
Show resolved
Hide resolved
...sdb/src/test/java/org/apache/flink/contrib/streaming/state/RocksDBResourceContainerTest.java
Outdated
Show resolved
Hide resolved
...sdb/src/test/java/org/apache/flink/contrib/streaming/state/RocksDBResourceContainerTest.java
Outdated
Show resolved
Hide resolved
...sdb/src/test/java/org/apache/flink/contrib/streaming/state/RocksDBResourceContainerTest.java
Outdated
Show resolved
Hide resolved
...sdb/src/test/java/org/apache/flink/contrib/streaming/state/RocksDBResourceContainerTest.java
Outdated
Show resolved
Hide resolved
And it seems there are some conflicts to resolve, sorry for the inconvenience due to my late review. |
...rocksdb/src/main/java/org/apache/flink/contrib/streaming/state/RocksDBResourceContainer.java
Outdated
Show resolved
Hide resolved
4a0e89b
to
761bbd6
Compare
Thanks for the update @liuyufei9527 , please check and fix the check style issue, and make sure the pre-commit build here could pass. Thanks.
|
14806f8
to
0c9ad2b
Compare
Configure partitioned index and filters options according to 'https://github.com/facebook/rocksdb/wiki/Partitioned-Index-Filters'.
0c9ad2b
to
604cc59
Compare
@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.
The latest changes LGTM, will merge it in 24 hours if no more comments/concerns from other committers.
Configure partitioned index and filters options according to 'https://github.com/facebook/rocksdb/wiki/Partitioned-Index-Filters'. This closes apache#14341.
Thanks, @liuyufei9527 and @carp84 for taking care of this one. |
What is the purpose of the change
Configure partitioned index and filters options according to 'https://github.com/facebook/rocksdb/wiki/Partitioned-Index-Filters'.
Brief change log
state.backend.rocksdb.memory.partitioned-index-filters
option represent enable this featurestate.backend.rocksdb.block.metadata-blocksize
config can set partitioned index block sizeVerifying this change
This change added tests and can be verified as follows:
testGetColumnFamilyOptionsWithPartitionedIndex
inRocksDBResourceContainerTest
Does this pull request potentially affect one of the following parts:
@Public(Evolving)
: ( no)Documentation