Skip to content

startActorC: Attempt to deregister the actor if registration fails with ContextDeadlineExceeded#163

Merged
mattayes merged 1 commit intomasterfrom
grid-actor-startup-register-deadline-exceeded
Jun 21, 2021
Merged

startActorC: Attempt to deregister the actor if registration fails with ContextDeadlineExceeded#163
mattayes merged 1 commit intomasterfrom
grid-actor-startup-register-deadline-exceeded

Conversation

@mattayes
Copy link
Copy Markdown
Contributor

@mattayes mattayes commented Jun 17, 2021

Ticket: lytics/lio#24378

There's an edge-case where, if actor registration succeeds on the etcd side but times out before the response is returned, we can leave the actor key around until the pod died, preventing the actor from starting.

This PR will defensively attempt to deregister the actor if we get a context.DeadlineExceeded error.

@mattayes mattayes requested a review from ajroetker June 17, 2021 21:37
@mattayes mattayes self-assigned this Jun 17, 2021
@mattayes mattayes merged commit 1b09a54 into master Jun 21, 2021
@mattayes mattayes deleted the grid-actor-startup-register-deadline-exceeded branch June 21, 2021 17:29
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