Skip to content
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

stable scheduling: fix bug in reporting assigned nodes of tidb members #531

Merged
merged 1 commit into from
May 29, 2019

Conversation

cofyc
Copy link
Contributor

@cofyc cofyc commented May 28, 2019

What problem does this PR solve?

fix bug in reporting assigned nodes of tidb members

What is changed and how it works?

Check List

Code changes

  • Has Go code change

Does this PR introduce a user-facing change?:

fix bug in reporting assigned nodes of tidb members

@@ -389,6 +389,7 @@ func (tmm *tidbMemberManager) syncTidbClusterStatus(tc *v1alpha1.TidbCluster, se
oldTidbMember, exist := tc.Status.TiDB.Members[name]
if exist {
newTidbMember.LastTransitionTime = oldTidbMember.LastTransitionTime
newTidbMember.NodeName = oldTidbMember.NodeName
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

copy the old value because we should not clear it in any case (e.g. new pod is in pending status)

@cofyc
Copy link
Contributor Author

cofyc commented May 28, 2019

/run-e2e-tests

@weekface weekface merged commit 3a06f1e into pingcap:master May 29, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants