-
Notifications
You must be signed in to change notification settings - Fork 500
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
base: master
Are you sure you want to change the base?
New crd for log compact #5822
Conversation
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: 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 |
… secret …" (pingcap#5823) This reverts commit 8cb0848.
Signed-off-by: hillium <yujuncen@pingcap.com>
Codecov ReportAttention: Patch coverage is
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
|
/retest |
} | ||
out, err := brCmd.Output() | ||
if err != nil { | ||
eerr := err.(*exec.ExitError) |
There was a problem hiding this comment.
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
} | ||
return errors.Errorf("until-ts %d must be greater than from-ts %d", c.UntilTS, c.FromTS) | ||
} | ||
if c.Concurrency <= 0 { |
There was a problem hiding this comment.
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.
|
||
//Skip | ||
if backup.Status.State != "" { | ||
return nil |
There was a problem hiding this comment.
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.
Co-authored-by: WangLe1321 <wangle1321@163.com>
What problem does this PR solve?
What is changed and how does it work?
Code changes
Tests
Side effects
Related changes
Release Notes
Please refer to Release Notes Language Style Guide before writing the release note.