-
Notifications
You must be signed in to change notification settings - Fork 2.1k
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
*: update dependencies #9715
*: update dependencies #9715
Conversation
update grpcio to 0.8, also update kvproto, tipb, rocksdb, raft to its latest main branch to include bugfixes and make them compile on Mac m1. Signed-off-by: Jay Lee <BusyJayLee@gmail.com>
Signed-off-by: Jay Lee <BusyJayLee@gmail.com>
Verified it compiled and tested on Mac m1.
Compilations are run with power adaptor plugged in. MacOS will slow things down when compilation consumes too much energy (take more than 6% battery to do release build). As a comparison, I also compile TiKV on a 8 core virtual machine:
The comparison is obvious unfair as we enable some optimizations (more compilation work) on Linux only and m1's CPU frequency is 1.6 times of linux vm. CI failure is due to outdated gcc on CentOS 7. Latest grpc requires gcc 4.9+, see also grpc/grpc#24932. |
Signed-off-by: Jay Lee <BusyJayLee@gmail.com>
/run-all-tests |
4 similar comments
/run-all-tests |
/run-all-tests |
/run-all-tests |
/run-all-tests |
/bench |
/release |
Cargo.lock
Outdated
@@ -505,7 +511,7 @@ dependencies = [ | |||
"panic_hook", | |||
"pd_client", | |||
"prometheus", | |||
"prost", | |||
"prost 0.6.1", |
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 we also update the direct dependency of prost in TiKV from 0.6 to 0.7?
Signed-off-by: Jay Lee <BusyJayLee@gmail.com>
Turns out there is no prost check in CI and it's broken (in master as well). |
I also found it before. The issue I met is the wrong feature resolved from raft-rs. Without resolver v2, the raft-proto crate, which is an inner crate in raft-rs, has both protobuf-codec and prost-codec enabled. |
Isn't it enabled in the Cargo.toml of TiKV project? Besides default features are disabled in all references. |
[REVIEW NOTIFICATION] This pull request has been approved by:
To complete the pull request process, please ask the reviewers in the list to review by filling The full list of commands accepted by this bot can be found here. Reviewer can indicate their review by writing |
/merge |
@hicqu: It seems you want to merge this PR, I will help you trigger all the tests: /run-all-tests You only need to trigger If you have any questions about the PR merge process, please refer to pr process. Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the ti-community-infra/tichi repository. |
This pull request has been accepted and is ready to merge. Commit hash: 411c607
|
/run-all-tests |
Benchmark shows there are 1% difference in throughput, which is within error range. |
A more detail bench table in case anyone is interested.
|
What problem does this PR solve?
Issue Number: close #9192
Problem Summary:
update grpcio to 0.8, also update kvproto, tipb, rocksdb, raft to its
latest main branch to include bugfixes and make them compile on Mac m1.
Check List
Tests
Release note