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

vmctl: finish retries if context canceled #4442

Merged
merged 4 commits into from Jun 13, 2023
Merged

Conversation

dmitryk-dk
Copy link
Contributor

Improved backoff retry policy for vmctl.
vmctl should finish retries if the context is canceled.

Signed-off-by: dmitryk-dk d.kozlov@victoriametrics.com

@codecov
Copy link

codecov bot commented Jun 13, 2023

Codecov Report

Patch coverage: 72.72% and project coverage change: +0.03 🎉

Comparison is base (40d12be) 61.27% compared to head (4740e45) 61.30%.

Additional details and impacted files
@@            Coverage Diff             @@
##           master    #4442      +/-   ##
==========================================
+ Coverage   61.27%   61.30%   +0.03%     
==========================================
  Files         330      330              
  Lines       59066    59075       +9     
==========================================
+ Hits        36194    36218      +24     
+ Misses      20892    20881      -11     
+ Partials     1980     1976       -4     
Impacted Files Coverage Δ
app/vmctl/backoff/backoff.go 90.90% <72.72%> (-9.10%) ⬇️

... and 6 files with indirect coverage changes

☔ View full report in Codecov by Sentry.
📢 Do you have feedback about the report comment? Let us know in this issue.

@hagen1778
Copy link
Collaborator

@dmitryk-dk would you mind adding changelog line?

docs/CHANGELOG.md Outdated Show resolved Hide resolved
@hagen1778 hagen1778 merged commit ddb3ae0 into master Jun 13, 2023
3 checks passed
@hagen1778 hagen1778 deleted the backoff-cancel-context branch June 13, 2023 11:54
valyala pushed a commit that referenced this pull request Jul 7, 2023
vmctl: interrupt backoff retries if import context is cancelled

Co-authored-by: Roman Khavronenko <roman@victoriametrics.com>
@valyala
Copy link
Collaborator

valyala commented Jul 28, 2023

FYI, this pull request has been included in vmctl v1.92.0.

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.

None yet

4 participants