Skip to content
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

feat(meta): support etcd as MetaStore backend #681

Merged
merged 6 commits into from
Mar 4, 2022

Conversation

TennyZhuang
Copy link
Contributor

@TennyZhuang TennyZhuang commented Mar 3, 2022

Signed-off-by: TennyZhuang [email protected]

What's changed and what's your intention?

We cannot run e2e tests based on etcd backend in the PR, but I prefer to merge it first, and add it to risedev as a optional flag, then debug for it.

Checklist

Refer to a related PR or issue link (optional)

@TennyZhuang TennyZhuang changed the title feat(meta): use etcd as MetaStore backend feat(meta): support etcd as MetaStore backend Mar 3, 2022
@codecov
Copy link

codecov bot commented Mar 3, 2022

Codecov Report

Merging #681 (575ae97) into main (8b8ff66) will increase coverage by 0.22%.
The diff coverage is 7.84%.

Impacted file tree graph

@@             Coverage Diff              @@
##               main     #681      +/-   ##
============================================
+ Coverage     71.35%   71.57%   +0.22%     
  Complexity     2706     2706              
============================================
  Files           895      899       +4     
  Lines         51277    51778     +501     
  Branches       1730     1751      +21     
============================================
+ Hits          36589    37062     +473     
- Misses        13873    13901      +28     
  Partials        815      815              
Flag Coverage Δ
java 59.62% <ø> (-0.24%) ⬇️
rust 76.69% <7.84%> (+0.38%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

Impacted Files Coverage Δ
rust/meta/src/bin/meta_node.rs 0.00% <ø> (ø)
rust/meta/src/storage/etcd_meta_store.rs 0.00% <0.00%> (ø)
rust/meta/src/storage/meta_store.rs 88.88% <0.00%> (-11.12%) ⬇️
rust/meta/src/test_utils.rs 100.00% <ø> (ø)
rust/meta/src/rpc/server.rs 71.42% <40.00%> (-19.75%) ⬇️
rust/meta/src/storage/tests.rs 96.50% <66.66%> (-0.68%) ⬇️
rust/frontend/src/catalog/catalog_service.rs 86.82% <0.00%> (-11.01%) ⬇️
rust/frontend/src/binder/expr/mod.rs 77.77% <0.00%> (-7.94%) ⬇️
rust/storage/src/table/mview.rs 72.27% <0.00%> (-1.99%) ⬇️
... and 46 more

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 8b8ff66...575ae97. Read the comment docs.

Signed-off-by: TennyZhuang <[email protected]>
@TennyZhuang TennyZhuang marked this pull request as ready for review March 3, 2022 12:38
Copy link
Member

@yezizp2012 yezizp2012 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

} else {
// Slow path
let _g = self.init_lock.lock().await;
let revision = self.revision.load(atomic::Ordering::Relaxed);
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should here be Acquire? @yuhao-su

Signed-off-by: TennyZhuang <[email protected]>
@TennyZhuang TennyZhuang requested a review from st1page March 4, 2022 04:08
@TennyZhuang TennyZhuang merged commit 238632f into main Mar 4, 2022
@TennyZhuang TennyZhuang deleted the feat/meta-etcd-backend branch March 4, 2022 05:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants