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

PD: auto-created failover pods should be deleted when failed members are recovered #2300

Merged
merged 5 commits into from
Apr 28, 2020

Conversation

cofyc
Copy link
Contributor

@cofyc cofyc commented Apr 26, 2020

What problem does this PR solve?

fixes #2161

What is changed and how does it work?

Check List

Tests

  • Unit test
  • E2E test
  • Stability test
  • Manual test (add detailed scripts or steps below)
  • No code

Code changes

  • Has Go code change
  • Has CI related scripts change
  • Has Terraform scripts change

Side effects

  • Breaking backward compatibility

Related changes

  • Need to cherry-pick to the release branch
  • Need to update the documentation

Does this PR introduce a user-facing change?:

Fix a bug that auto-created failover pods can't be deleted if they are in failed state.

@cofyc
Copy link
Contributor Author

cofyc commented Apr 26, 2020

@@ -266,9 +269,6 @@ var _ = ginkgo.Describe("[tidb-operator][Stability]", func() {
framework.Skipf("current provider is not supported list %v, skipping", supportedProviders.List())
}

ginkgo.By("Wait for all nodes are schedulable")
framework.ExpectNoError(framework.WaitForAllNodesSchedulable(c, framework.TestContext.NodeSchedulableTimeout))

Copy link
Contributor Author

Choose a reason for hiding this comment

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

this is unnecessary because we will wait for at least 3 schedulable nodes below

Copy link
Contributor

@weekface weekface left a comment

Choose a reason for hiding this comment

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

LGTM

@cofyc
Copy link
Contributor Author

cofyc commented Apr 28, 2020

@Yisaer @DanielZhangQD PTAL

@Yisaer
Copy link
Contributor

Yisaer commented Apr 28, 2020

/merge

@sre-bot
Copy link
Contributor

sre-bot commented Apr 28, 2020

/run-all-tests

@sre-bot sre-bot merged commit b89d90d into pingcap:master Apr 28, 2020
@sre-bot
Copy link
Contributor

sre-bot commented Apr 28, 2020

cherry pick to release-1.1 failed

sre-bot added a commit to cofyc/tidb-operator that referenced this pull request Apr 28, 2020
sre-bot pushed a commit that referenced this pull request Apr 28, 2020
@DanielZhangQD
Copy link
Contributor

Should we add release notes for this fix? @cofyc

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

PD pods created due to failover are not deleted after the failed pods recover
5 participants