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

Don't upgrade pods if empty StatefulSet UpdateRevision (#2321) #2336

Merged
merged 1 commit into from
Jan 3, 2020

Conversation

barkbay
Copy link
Contributor

@barkbay barkbay commented Jan 3, 2020

Backport of #2321 in 1.0

We had a bug were some Pods of a newly created StatefulSet would be
force upgraded because they are Pending, and we consider they need to be
upgraded because their revision does not match the StatefulSet update
revision.
That's because the StatefulSet updateRevision is empty on initial
StatefulSet creation.

This commit fixes it by not considering empty StatefulSet
updateRevisions when looking for Pods to upgrade.
@barkbay barkbay added >bug Something isn't working backport For backport PRs v1.0.0 labels Jan 3, 2020
@barkbay
Copy link
Contributor Author

barkbay commented Jan 3, 2020

jenkins test this please

@barkbay barkbay merged commit fb7f90b into elastic:1.0 Jan 3, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backport For backport PRs >bug Something isn't working v1.0.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants