Skip to content
This repository has been archived by the owner on Apr 24, 2023. It is now read-only.

Bugfix: If we have problems processing something, don't kill the watch thread. #1276

Merged
merged 2 commits into from
Oct 31, 2019

Conversation

scrosby
Copy link
Member

@scrosby scrosby commented Oct 30, 2019

Changes proposed in this PR

  • If we have problems processing something, don't make the whole thread die

Why are we making these changes?

On startup, this processing happens in the watch thread. An exception here causes the watch thread to die, and we don't see new events from kubernetes.

@scrosby scrosby requested a review from dposada October 30, 2019 00:38
(try
(process kcc pod-name)
(catch Exception e
(log/error e "Error while processing pod-update for" pod-name))))))))
Copy link
Contributor

Choose a reason for hiding this comment

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

Can we include the compute cluster name in this log? To be consistent with other spots, let's do

In compute cluster $name, error while processing pod update for ...

(try
(process kcc pod-name)
(catch Exception e
(log/error e "Error while processing pod-deleting for" pod-name))))))
Copy link
Contributor

Choose a reason for hiding this comment

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

Can we include the compute cluster name in this log? To be consistent with other spots, let's do

In compute cluster $name, error while processing pod deletion for ...

@dposada
Copy link
Contributor

dposada commented Oct 30, 2019

Will merge when green

@dposada dposada merged commit 7634307 into twosigma:master Oct 31, 2019
@scrosby scrosby deleted the outgoing/handle-exception-on-start branch November 1, 2019 15:41
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants