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(test): support killing all kinds of node in deterministic e2e test #4969

Merged
merged 4 commits into from
Aug 31, 2022

Conversation

wangrunji0408
Copy link
Contributor

@wangrunji0408 wangrunji0408 commented Aug 29, 2022

I hereby agree to the terms of the Singularity Data, Inc. Contributor License Agreement.

What's changed and what's your intention?

As title.
Like #4332, we made the meta in-memory store shared, so that data won't lose after restart.
Temporarily disabled recovery test on CI because it's unstable. Tracking issue: #4527.

Checklist

  • I have written necessary rustdoc comments
  • I have added necessary unit tests and integration tests
  • All checks passed in ./risedev check (or alias, ./risedev c)

Refer to a related PR or issue link (optional)

@codecov
Copy link

codecov bot commented Aug 29, 2022

Codecov Report

Merging #4969 (3bc7169) into main (b60803f) will increase coverage by 0.19%.
The diff coverage is 64.57%.

@@            Coverage Diff             @@
##             main    #4969      +/-   ##
==========================================
+ Coverage   74.02%   74.21%   +0.19%     
==========================================
  Files         877      877              
  Lines      134077   134064      -13     
==========================================
+ Hits        99245    99491     +246     
+ Misses      34832    34573     -259     
Flag Coverage Δ
rust 74.21% <64.57%> (+0.19%) ⬆️

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

Impacted Files Coverage Δ
src/common/src/config.rs 62.09% <0.00%> (+7.09%) ⬆️
src/common/src/util/mod.rs 0.00% <ø> (ø)
src/common/src/util/sort_util.rs 93.37% <ø> (+2.43%) ⬆️
...c/compute/src/compute_observer/observer_manager.rs 65.71% <ø> (+13.44%) ⬆️
src/compute/src/lib.rs 2.77% <0.00%> (-0.08%) ⬇️
src/compute/src/server.rs 0.00% <0.00%> (ø)
src/expr/src/expr/agg.rs 50.00% <ø> (ø)
src/frontend/src/catalog/mod.rs 75.67% <ø> (ø)
src/frontend/src/handler/query.rs 0.00% <0.00%> (ø)
src/frontend/src/lib.rs 42.10% <0.00%> (-2.34%) ⬇️
... and 155 more

📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more

Copy link
Member

@BugenZhao BugenZhao left a comment

Choose a reason for hiding this comment

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

LGTM

@@ -156,7 +174,7 @@ async fn main() {
]);
risingwave_compute::start(opts).await
});
if args.kill_node {
if args.kill_compute || args.kill_meta {
Copy link
Member

Choose a reason for hiding this comment

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

Should the compactor also restart on meta restarts? 🤔

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Not tested yet. I will add this to compactor if needed.

@mergify mergify bot merged commit e940ead into main Aug 31, 2022
@mergify mergify bot deleted the wrj/kill-meta branch August 31, 2022 06:47
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.

2 participants