Skip to content

feat: Add an error variant RetryLater#1058

Merged
v0y4g3r merged 11 commits intoGreptimeTeam:developfrom
jun0315:procedure-retry
Feb 27, 2023
Merged

feat: Add an error variant RetryLater#1058
v0y4g3r merged 11 commits intoGreptimeTeam:developfrom
jun0315:procedure-retry

Conversation

@jun0315
Copy link
Copy Markdown
Contributor

@jun0315 jun0315 commented Feb 22, 2023

I hereby agree to the terms of the GreptimeDB CLA

What's changed and what's your intention?

Add an error variant RetryLater for recoverable failure. (The default variant External always abort the procedure.)

Checklist

  • I have written the necessary rustdoc comments.
  • I have added the necessary unit tests and integration tests.

Refer to a related PR or issue link (optional)

#286

TODO

In order to better manage the retry logic, we will increase the maximum number of retries and increase the waiting time exponentially

@codecov
Copy link
Copy Markdown

codecov bot commented Feb 22, 2023

Codecov Report

Merging #1058 (81e788e) into develop (bd377ef) will decrease coverage by 0.12%.
The diff coverage is 88.46%.

@@             Coverage Diff             @@
##           develop    #1058      +/-   ##
===========================================
- Coverage    85.43%   85.32%   -0.12%     
===========================================
  Files          458      458              
  Lines        66684    66731      +47     
===========================================
- Hits         56972    56937      -35     
- Misses        9712     9794      +82     

Comment thread src/common/procedure/src/error.rs Outdated
Comment thread src/common/procedure/src/local/runner.rs Outdated
Comment thread src/common/procedure/src/local/runner.rs Outdated
Comment thread src/storage/Cargo.toml Outdated
@jun0315
Copy link
Copy Markdown
Contributor Author

jun0315 commented Feb 27, 2023

@evenyag PTAL :D

@evenyag
Copy link
Copy Markdown
Contributor

evenyag commented Feb 27, 2023

I added a new error table_procedure::Error in #1040

Could you also refactor the From implementation for it?

Comment thread src/common/procedure/src/error.rs Outdated
@jun0315
Copy link
Copy Markdown
Contributor Author

jun0315 commented Feb 27, 2023

I added a new error table_procedure::Error in #1040

Could you also refactor the From implementation for it?

Good idea! I have solved all the above code reviews.:D

Comment thread src/common/procedure/src/local/runner.rs Outdated
Copy link
Copy Markdown
Contributor

@evenyag evenyag left a comment

Choose a reason for hiding this comment

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

LGTM

@evenyag evenyag requested a review from v0y4g3r February 27, 2023 08:56
Copy link
Copy Markdown
Contributor

@v0y4g3r v0y4g3r left a comment

Choose a reason for hiding this comment

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

LGTM

@v0y4g3r v0y4g3r merged commit 0b3f955 into GreptimeTeam:develop Feb 27, 2023
@jun0315 jun0315 deleted the procedure-retry branch February 27, 2023 09:20
@jun0315 jun0315 mentioned this pull request Feb 28, 2023
2 tasks
@v0y4g3r v0y4g3r mentioned this pull request May 4, 2023
2 tasks
paomian pushed a commit to paomian/greptimedb that referenced this pull request Oct 19, 2023
* feat: support retry error

* fix: ci

* fix: ci

* fix: fmt

* feat: add convert procedure error

* Docs : add rustdoc

* fix: cr

* fix: cr

* fix: rm unless code
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants