-
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
log-backup: add the switch for log backup #36115
log-backup: add the switch for log backup #36115
Conversation
[REVIEW NOTIFICATION] This pull request has been approved by:
To complete the pull request process, please ask the reviewers in the list to review by filling The full list of commands accepted by this bot can be found here. Reviewer can indicate their review by submitting an approval review. |
eb4b4a8
to
b0f2213
Compare
c540ca8
to
d967eee
Compare
b4c72d9
to
b9a2395
Compare
8fcac45
to
96c7dab
Compare
Code Coverage Details: https://codecov.io/github/pingcap/tidb/commit/721d1a446acb9ba79474d9029be8013cab963618 |
bbbea79
to
74e5299
Compare
ddl/backfilling.go
Outdated
@@ -609,6 +609,16 @@ func (w *worker) writePhysicalTableRecord(t table.PhysicalTable, bfWorkerType ba | |||
}() | |||
jc := w.jobContext(job) | |||
|
|||
// ctx, err := w.sessPool.get() |
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.
@Benjamin2037 Please help review this usage.
@@ -25,6 +25,7 @@ func TestMain(m *testing.M) { | |||
testsetup.SetupForCommonTest() | |||
opts := []goleak.Option{ | |||
goleak.IgnoreTopFunction("github.com/golang/glog.(*loggingT).flushDaemon"), | |||
goleak.IgnoreTopFunction("go.opencensus.io/stats/view.(*worker).start"), |
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.
@hawkingrei Please help review this fix of unit test.
@@ -47,6 +48,7 @@ type featureUsage struct { | |||
NonTransactionalUsage *m.NonTransactionalStmtCounter `json:"nonTransactional"` | |||
GlobalKill bool `json:"globalKill"` | |||
MultiSchemaChange *m.MultiSchemaChangeUsageCounter `json:"multiSchemaChange"` | |||
LogBackup bool `json:"logBackup"` |
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.
@AstroProfundis Please help review this change.
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
/run-integration-br-tests |
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.
LGTM
/hold for more reviewers |
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.
The gc worker part lgtm.
@AstroProfundis: Thanks for your review. The bot only counts approvals from reviewers and higher roles in list, but you're still welcome to leave your comments. 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 ti-community-infra/tichi repository. |
/unhold |
/merge |
This pull request has been accepted and is ready to merge. Commit hash: 6e512cc
|
TiDB MergeCI notify🔴 Bad News! New failing [1] after this pr merged.
|
What problem does this PR solve?
Issue Number: ref #29501
Problem Summary:
we have several places need to check whether log backup is enabled.
What is changed and how it works?
Check List
Tests
when cluster not enable log backup or don't have the config

log-backup.enable
.when enable to true.

Side effects
Documentation
Release note
Please refer to Release Notes Language Style Guide to write a quality release note.