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

ebs: calc full snapshot size and report backup size for failed backup (#5007) #5138

Merged

Conversation

ti-chi-bot
Copy link
Member

This is an automated cherry-pick of #5007

What problem does this PR solve?

Closes #4993

What is changed and how does it work?

  1. Backup size attribute of a backup CR is now the expected size after restore instead of the delta.
  2. Backup size will be reported for both successful and failed ebs backup job
  3. No need to recalculate backupsize at clean time

Code changes

  • Has Go code change
  • Has CI related scripts change

Tests

  • Unit test
  • E2E test
  • Manual test
  • No code

Side effects

  • Breaking backward compatibility
  • Other side effects:

Related changes

  • Need to cherry-pick to the release branch
  • Need to update the documentation

Release Notes

Please refer to Release Notes Language Style Guide before writing the release note.


Signed-off-by: BornChanger <dawn_catcher@126.com>
Signed-off-by: BornChanger <dawn_catcher@126.com>
Signed-off-by: BornChanger <dawn_catcher@126.com>
Signed-off-by: BornChanger <dawn_catcher@126.com>
Signed-off-by: BornChanger <dawn_catcher@126.com>
Signed-off-by: BornChanger <dawn_catcher@126.com>
Signed-off-by: BornChanger <dawn_catcher@126.com>
@ti-chi-bot
Copy link
Contributor

ti-chi-bot bot commented Jul 4, 2023

[APPROVALNOTIFIER] This PR is NOT APPROVED

This pull-request has been approved by:
Once this PR has been reviewed and has the lgtm label, please assign dragonly for approval. For more information see the Kubernetes Code Review Process.

The full list of commands accepted by this bot can be found here.

Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@ti-chi-bot ti-chi-bot bot requested a review from shonge July 4, 2023 06:14
@ti-chi-bot ti-chi-bot bot added the size/L label Jul 4, 2023
@codecov-commenter
Copy link

Codecov Report

Merging #5138 (caa4a67) into release-1.5 (357c02d) will increase coverage by 0.56%.
The diff coverage is 57.18%.

Additional details and impacted files
@@               Coverage Diff               @@
##           release-1.5    #5138      +/-   ##
===============================================
+ Coverage        57.23%   57.79%   +0.56%     
===============================================
  Files              246      248       +2     
  Lines            28697    28886     +189     
===============================================
+ Hits             16424    16694     +270     
+ Misses           10682    10566     -116     
- Partials          1591     1626      +35     
Flag Coverage Δ
unittest 57.79% <57.18%> (+0.56%) ⬆️

@csuzhangxc csuzhangxc merged commit 3d17117 into pingcap:release-1.5 Jul 4, 2023
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.

4 participants