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: apply retry strategy when recovery #1768

Merged
merged 2 commits into from
Apr 11, 2022
Merged

Conversation

yezizp2012
Copy link
Member

@yezizp2012 yezizp2012 commented Apr 11, 2022

What's changed and what's your intention?

As title, using retry strategy for operation in recovery rather than simple loop and add retry interval for reset_compute_nodes.

Checklist

  • I have written necessary docs and comments
  • I have added necessary unit tests and integration tests

Refer to a related PR or issue link (optional)

@codecov
Copy link

codecov bot commented Apr 11, 2022

Codecov Report

Merging #1768 (338893e) into main (d174bae) will decrease coverage by 0.01%.
The diff coverage is 0.00%.

@@            Coverage Diff             @@
##             main    #1768      +/-   ##
==========================================
- Coverage   71.17%   71.15%   -0.02%     
==========================================
  Files         601      601              
  Lines       77937    77950      +13     
==========================================
- Hits        55469    55468       -1     
- Misses      22468    22482      +14     
Flag Coverage Δ
rust 71.15% <0.00%> (-0.02%) ⬇️

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

Impacted Files Coverage Δ
src/meta/src/barrier/mod.rs 70.52% <ø> (ø)
src/meta/src/barrier/recovery.rs 0.00% <0.00%> (ø)
src/common/src/types/ordered_float.rs 23.50% <0.00%> (-0.20%) ⬇️

📣 Codecov can now indicate which changes are the most critical in Pull Requests. Learn more

@yezizp2012 yezizp2012 enabled auto-merge (squash) April 11, 2022 10:04
loop {
tokio::time::sleep(Self::RECOVERY_RETRY_INTERVAL).await;

let retry_category = Self::get_retry_strategy();
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
let retry_category = Self::get_retry_strategy();
let retry_strategy = Self::get_retry_strategy();

@yezizp2012 yezizp2012 merged commit 0d867ec into main Apr 11, 2022
@yezizp2012 yezizp2012 deleted the feat/recovery-retry-catagory branch April 11, 2022 10:11
@BugenZhao
Copy link
Member

Not noticed that the auto-merging is on. 😢

@yezizp2012
Copy link
Member Author

Not noticed that the auto-merging is on. 😢

My bad, will fix this in another PR. 😁

@yezizp2012 yezizp2012 changed the title feat: apply retry category when recovery feat: apply retry strategy when recovery Apr 11, 2022
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