-
Notifications
You must be signed in to change notification settings - Fork 5.9k
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
br/cmd: added operator checksum-as|force-flush #58801
br/cmd: added operator checksum-as|force-flush #58801
Conversation
Hi @YuJuncen. Thanks for your PR. PRs from untrusted users cannot be marked as trusted with I understand the commands that are listed here. Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository. |
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## master #58801 +/- ##
================================================
+ Coverage 73.1124% 74.7206% +1.6081%
================================================
Files 1678 1695 +17
Lines 464111 464746 +635
================================================
+ Hits 339323 347261 +7938
+ Misses 103907 95904 -8003
- Partials 20881 21581 +700
Flags with carried forward coverage won't be shown. Click here to find out more.
|
/retest-required |
@YuJuncen: Cannot trigger testing until a trusted user reviews the PR and leaves an In response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository. |
Signed-off-by: hillium <[email protected]>
/retest-required |
@YuJuncen: Cannot trigger testing until a trusted user reviews the PR and leaves an In response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository. |
/test build |
@YuJuncen: Cannot trigger testing until a trusted user reviews the PR and leaves an In response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository. |
/test build |
@YuJuncen: Cannot trigger testing until a trusted user reviews the PR and leaves an In response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository. |
…e-new-opeartor-commands
type ForceFlushConfig struct { | ||
task.Config | ||
|
||
StoresPattern *regexp.Regexp |
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.
please give a simple sample
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.
rest LGTM
log.Info("About to start force flushing.", zap.Stringer("stores-pattern", cfg.StoresPattern)) | ||
for _, s := range tikvs { | ||
if !cfg.StoresPattern.MatchString(s.Address) || engine.IsTiFlash(s) { | ||
log.Info("Skipping TiFlash or not matched TiKV.", |
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.
miss continue.
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: 3pointer, BornChanger The full list of commands accepted by this bot can be found here. The pull request process is described here |
[LGTM Timeline notifier]Timeline:
|
What problem does this PR solve?
Issue Number: close #58798 #58799
Problem Summary:
See the issue description.
What changed and how does it work?
This PR added two new subcommands to
br operator
:checksum-as
: this generates rewrite rule from a storage and performs checksum.force-flush
: this allows user to force trigger a flush.Check List
Tests
I used these utilities when executing some internal tests. They works fine as far as I go.
The scenarios including:
checksum-as
where-s
is the--full-backup-storage
in therestore point
command.(With the compatibility solution between log backup and ingesting, which doesn't present in master branch yet)
checksum-as
after restoring to a cluster, where-s
is the restored backup.checksum-as
over the tables restored where-s
is the restored backup in1.
.The
force-flush
part was used in integration tests.Side effects
Documentation
Release note
Please refer to Release Notes Language Style Guide to write a quality release note.