-
Notifications
You must be signed in to change notification settings - Fork 502
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
Sync TiCDC after TiDB #4171
Sync TiCDC after TiDB #4171
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. |
@@ -114,14 +114,13 @@ func (m *pumpMemberManager) syncPumpStatefulSetForTidbCluster(tc *v1alpha1.TidbC | |||
} | |||
|
|||
// Wait for PD & TiKV upgrading done | |||
if tc.Status.TiCDC.Phase == v1alpha1.UpgradePhase || | |||
tc.Status.TiFlash.Phase == v1alpha1.UpgradePhase || | |||
if tc.Status.TiFlash.Phase == v1alpha1.UpgradePhase || |
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.
Maybe we need general code to check whether a component can upgrade 🤔
Codecov Report
@@ Coverage Diff @@
## master #4171 +/- ##
==========================================
+ Coverage 61.27% 70.43% +9.15%
==========================================
Files 178 182 +4
Lines 18978 21287 +2309
==========================================
+ Hits 11629 14993 +3364
+ Misses 6206 5130 -1076
- Partials 1143 1164 +21
|
tc.Status.TiFlash.Phase == v1alpha1.UpgradePhase || | ||
tc.Status.Pump.Phase == v1alpha1.UpgradePhase || | ||
tc.Status.TiDB.Phase == v1alpha1.UpgradePhase { | ||
klog.Infof("TidbCluster: [%s/%s]'s pd status is %s, "+ |
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.
Why couldn't the phase of TiCDC become ScalePhase
?
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.
It's just because no need to care about the scale phase during upgrading, but for PD, TiKV, TiFlash we'd better avoid scaling and upgrading at the same time because it may cause unexpected behavior.
/test pull-e2e-kind |
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
/merge |
This pull request has been accepted and is ready to merge. Commit hash: 546c9f7
|
/test pull-e2e-kind |
/test pull-e2e-kind |
1 similar comment
/test pull-e2e-kind |
/test pull-e2e-kind |
/test pull-e2e-kind |
/merge |
This pull request has been accepted and is ready to merge. Commit hash: 8d45649
|
Signed-off-by: ti-srebot <[email protected]>
cherry pick to release-1.2 in PR #4178 |
Signed-off-by: ti-srebot <[email protected]>
cherry pick to release-1.1 in PR #4187 |
What problem does this PR solve?
Close #4167
What is changed and how does it work?
Code changes
Tests
EKS 1.21.2
Side effects
Related changes
Release Notes
Please refer to Release Notes Language Style Guide before writing the release note.