Skip to content
This repository was archived by the owner on Apr 29, 2020. It is now read-only.

Automatically delete a dangling RU when a there's a deploy attempt wi…#1136

Open
esuen wants to merge 1 commit intosquare:masterfrom
esuen:delete-dangling-ru-on-deploy
Open

Automatically delete a dangling RU when a there's a deploy attempt wi…#1136
esuen wants to merge 1 commit intosquare:masterfrom
esuen:delete-dangling-ru-on-deploy

Conversation

@esuen
Copy link
Contributor

@esuen esuen commented Oct 22, 2019

…th only one RC.

@esuen
Copy link
Contributor Author

esuen commented Oct 22, 2019

I still gotta test this.

// There is an unknown reason where sometimes an RU still exists when it
// shouldn't. This deletes the dangling RU which is what we've been
// doing manually
err = s.Delete(ctx, conflictingErr.ConflictingID)
Copy link
Collaborator

Choose a reason for hiding this comment

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

Shouldn't we check if there is only a single RC before deleting the RU blindly? 99% of the time I agree, but we have seen a couple where the RU is stuck because the RC is not at zero replicas.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I believe this function only gets called when there’s only one RC. I can
double check later again, the name also suggests that this code path occurs
when there’s only one rc “...FromOneExistingRC”.

@ausmith
Copy link
Collaborator

ausmith commented Nov 14, 2019

Pull latest from master to get tests able to run again.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants