-
Notifications
You must be signed in to change notification settings - Fork 501
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
don't failover if TiDB pod is not scheduled and perform recovery no matter what state failover pods are in #2263
Conversation
527043e
to
d687a08
Compare
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.
Do we need to also support this feature for tikv and pd?
I'm going to fix #2161 first. |
ginkgo.AfterEach(func() { | ||
ginkgo.By("Uninstall tidb-operator") | ||
oa.CleanOperatorOrDie(ocfg) | ||
}) |
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.
easier to debug in development
@@ -1398,6 +1405,10 @@ func (oa *operatorActions) pdMembersReadyFn(tc *v1alpha1.TidbCluster) (bool, err | |||
return false, nil | |||
} | |||
|
|||
if pdSet.Status.CurrentRevision != pdSet.Status.UpdateRevision { | |||
return false, 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.
make sure all pods of StatefulSet are up to date
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 |
Your auto merge job has been accepted, waiting for:
|
/run-all-tests |
@cofyc merge failed. |
/merge |
/run-all-tests |
/run-all-tests |
cherry pick to release-1.1 in PR #2358 |
What problem does this PR solve?
fixes #2155
What is changed and how does it work?
Check List
Tests
https://internal.pingcap.net/idc-jenkins/blue/organizations/jenkins/tidb-operator-e2e-gke-ci-master-stability/detail/tidb-operator-e2e-gke-ci-master-stability/54/pipeline
Code changes
Side effects
Related changes
Does this PR introduce a user-facing change?: