Skip to content

Create SessionService#TerminationNotification as best-effort attempt to notify on worker exit#1210

Merged
nbauernfeind merged 9 commits intodeephaven:mainfrom
nbauernfeind:fatal_err_interceptor
Sep 17, 2021
Merged

Create SessionService#TerminationNotification as best-effort attempt to notify on worker exit#1210
nbauernfeind merged 9 commits intodeephaven:mainfrom
nbauernfeind:fatal_err_interceptor

Conversation

@nbauernfeind
Copy link
Copy Markdown
Contributor

@nbauernfeind nbauernfeind commented Sep 2, 2021

This is follow-up to improve experience in situations like #888, when the worker unexpectedly dies.

Clients subscribe to receive a terminal notification request when the process exits. Included in the message is the best level of detail we can offer describing the error that has just cropped up.

Initial integration with jsapi. The web-client-ui does not quite display this absolutely lovingly. However one can select-all and copy to bring the error to their favorite IDE for analysis.

@nbauernfeind nbauernfeind requested a review from rcaudy September 2, 2021 23:15
@nbauernfeind nbauernfeind self-assigned this Sep 2, 2021
@nbauernfeind nbauernfeind added this to the Sept 2021 milestone Sep 2, 2021
@nbauernfeind nbauernfeind changed the title Give LogBufferListeners one last hurrah before fatally exiting Create SessionService#TerminationNotification as best-effort attempt to notify on worker exit Sep 3, 2021
Copy link
Copy Markdown
Member

@rcaudy rcaudy left a comment

Choose a reason for hiding this comment

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

I think two of my comments are probably nonsense, since you seem to be relying on a "two stage" effect in the case of fatal error.

rcaudy
rcaudy previously approved these changes Sep 3, 2021
Copy link
Copy Markdown
Member

@rcaudy rcaudy left a comment

Choose a reason for hiding this comment

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

I looked at the changes in the last 7 commits for grpc_api classes. I assume Colin owns review for the rest. I have one suggestion, but otherwise this is ready to go.

@niloc132
Copy link
Copy Markdown
Member

Generated JS is more or less ignored, as long as it doesn't break the build - that is the scaffolding such that the JS API could eventually call this api.

@nbauernfeind nbauernfeind merged commit a90a4af into deephaven:main Sep 17, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants