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

Orphan pods cleaner #201

Merged
merged 6 commits into from
Dec 1, 2018
Merged

Orphan pods cleaner #201

merged 6 commits into from
Dec 1, 2018

Conversation

weekface
Copy link
Contributor

@weekface weekface commented Nov 28, 2018

  • add orphan pods cleaner: delete the pod if its pvc is not exist
  • add unit tests to orphan pods cleaner
  • only delete one defer deleting pvc when scale out
  • e2e: set upgrade timeout duration to 10 minutes(upgrading all 5 tikvs may need more than 5 minutes)

@tennix @xiaojingchen PTAL

@weekface
Copy link
Contributor Author

/run-e2e-tests

continue
}
if !errors.IsNotFound(err) {
return skipReason, err
Copy link
Contributor

Choose a reason for hiding this comment

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

why not use continue here?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

If there is an error, return directly.
Is this reasonable?

@tennix
Copy link
Member

tennix commented Nov 29, 2018

/run-e2e-tests

Copy link
Contributor

@onlymellb onlymellb left a comment

Choose a reason for hiding this comment

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

LGTM

@tennix
Copy link
Member

tennix commented Nov 30, 2018

/run-e2e-tests

1 similar comment
@tennix
Copy link
Member

tennix commented Nov 30, 2018

/run-e2e-tests

Copy link
Member

@tennix tennix left a comment

Choose a reason for hiding this comment

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

LGTM

@tennix tennix merged commit 94181ea into pingcap:master Dec 1, 2018
@weekface weekface deleted the orphan-pods-cleaner branch December 1, 2018 11:40
queenliuxx pushed a commit to queenliuxx/tidb-operator that referenced this pull request Dec 19, 2018
* add ophan pods cleaner

* upgrade duration to 10 minutes
fgksgf pushed a commit to fgksgf/tidb-operator that referenced this pull request Dec 23, 2024
Signed-off-by: liubo02 <liubo02@pingcap.com>
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.

4 participants