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 51 commits into
base: master
Choose a base branch
from
Open

New crd for log compact #5822

wants to merge 51 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 0.96022% with 722 lines in your changes missing coverage. Please review.

Project coverage is 56.09%. Comparing base (a16b2e8) to head (9e1f0f8).
Report is 19 commits behind head on master.

Additional details and impacted files
@@            Coverage Diff             @@
##           master    #5822      +/-   ##
==========================================
- Coverage   57.19%   56.09%   -1.10%     
==========================================
  Files         259      266       +7     
  Lines       33233    45744   +12511     
==========================================
+ Hits        19008    25661    +6653     
- Misses      12291    18098    +5807     
- Partials     1934     1985      +51     
Flag Coverage Δ
unittest 56.09% <0.96%> (-1.10%) ⬇️

@RidRisR
Copy link
Contributor Author

RidRisR commented Dec 4, 2024

/retest

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
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.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

maybe,but not here, I prefer to set it in types.go

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.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

ok, Now I will check if the job is already running and sync the job state to CR if it failed

@RidRisR RidRisR requested a review from WangLe1321 December 26, 2024 10:25
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