br/cmd: added operator checksum-as|force-flush#58801
br/cmd: added operator checksum-as|force-flush#58801ti-chi-bot[bot] merged 11 commits intopingcap:masterfrom
Conversation
Signed-off-by: hillium <yu745514916@live.com>
|
Hi @YuJuncen. Thanks for your PR. PRs from untrusted users cannot be marked as trusted with I understand the commands that are listed here. DetailsInstructions 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 DetailsIn 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. |
|
/retest-required |
|
@YuJuncen: Cannot trigger testing until a trusted user reviews the PR and leaves an DetailsIn 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 DetailsIn 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 DetailsIn 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.
please give a simple sample
| 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.", |
|
[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-aswhere-sis the--full-backup-storagein therestore pointcommand.(With the compatibility solution between log backup and ingesting, which doesn't present in master branch yet)
checksum-asafter restoring to a cluster, where-sis the restored backup.checksum-asover the tables restored where-sis the restored backup in1..The
force-flushpart was used in integration tests.Side effects
Documentation
Release note
Please refer to Release Notes Language Style Guide to write a quality release note.