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

New crd for log compact #5822

Open
wants to merge 45 commits into
base: master
Choose a base branch
from
Open

New crd for log compact #5822

wants to merge 45 commits into from

Conversation

RidRisR
Copy link
Contributor

@RidRisR RidRisR commented Oct 28, 2024

What problem does this PR solve?

What is changed and how does it work?

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.


Copy link
Contributor

ti-chi-bot bot commented Oct 28, 2024

[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 azurezyq for approval. For more information see the 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 howardlau1999 October 28, 2024 10:26
@ti-chi-bot ti-chi-bot bot added the size/XXL label Oct 28, 2024
@codecov-commenter
Copy link

codecov-commenter commented Dec 4, 2024

Codecov Report

Attention: Patch coverage is 1.01156% with 685 lines in your changes missing coverage. Please review.

Project coverage is 56.13%. Comparing base (a16b2e8) to head (26bf6ed).
Report is 19 commits behind head on master.

Additional details and impacted files
@@            Coverage Diff             @@
##           master    #5822      +/-   ##
==========================================
- Coverage   57.19%   56.13%   -1.07%     
==========================================
  Files         259      266       +7     
  Lines       33233    45707   +12474     
==========================================
+ Hits        19008    25656    +6648     
- Misses      12291    18064    +5773     
- Partials     1934     1987      +53     
Flag Coverage Δ
unittest 56.13% <1.01%> (-1.07%) ⬇️

@RidRisR
Copy link
Contributor Author

RidRisR commented Dec 4, 2024

/retest

}
out, err := brCmd.Output()
if err != nil {
eerr := err.(*exec.ExitError)
Copy link
Contributor

Choose a reason for hiding this comment

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

you'd better to check if the err is *exec.ExitError type

cmd/backup-manager/app/compact/manager.go Outdated Show resolved Hide resolved
cmd/backup-manager/app/compact/manager.go Outdated Show resolved Hide resolved
cmd/backup-manager/app/compact/manager.go Outdated Show resolved Hide resolved
}
return errors.Errorf("until-ts %d must be greater than from-ts %d", c.UntilTS, c.FromTS)
}
if c.Concurrency <= 0 {
Copy link
Contributor

Choose a reason for hiding this comment

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

you can set a default concurrency here.

pkg/apis/pingcap/v1alpha1/types.go Outdated Show resolved Hide resolved
pkg/apis/pingcap/v1alpha1/types.go Outdated Show resolved Hide resolved
pkg/apis/pingcap/v1alpha1/types.go Outdated Show resolved Hide resolved
pkg/apis/pingcap/v1alpha1/types.go Outdated Show resolved Hide resolved

//Skip
if backup.Status.State != "" {
return nil
Copy link
Contributor

Choose a reason for hiding this comment

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

you can't just return here. if the CompactBackup is in prepare status, but creating job failed and updating failed status failed, how to handle that? Besides that, if create job failed, it is better to retry.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants