Skip to content

Conversation

@shuichiro-makigaki
Copy link
Contributor

@shuichiro-makigaki shuichiro-makigaki commented Nov 16, 2019

gateway_request in gateway.manager raises tornado.web.HTTPError exceptions, but the callers, such as GatewayKernelManager.get_kernel, catch tornado.httpclient.HTTPError, instead of tornado.web.HTTPError. Therefore, the callers can not handle exceptions during gateway interactions.

This causes that, for example, when Jupyter Enterprise Gateway culled a kernel by idle timeout, the gateway manager can not handle the kernel's absent appropriately. As a result, notebook users see ambiguous "Kernel Error" and can not restart the kernel or start a new kernel.

(This is the same as jupyter/notebook#5055.)

`gateway_request` in `gateway.manager` raises `tornado.web.HTTPError` exceptions,
but the callers, such as `GatewayKernelManager.get_kernel`, catch
`tornado.httpclient.HTTPError`, instead of `tornado.web.HTTPError`.
Therefore, the callers can not handle exceptions during gateway interactions.

This causes that, for example, when Jupyter Enterprise Gateway culled a kernel
by idle timeout, the gateway manager can not handle the kernel's absent appropriately.
As a result, notebook users see ambiguous "Kernel Error" and can not restart
the kernel or start a new kernel.
Copy link
Member

@kevin-bates kevin-bates left a comment

Choose a reason for hiding this comment

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

These changes look good and have been previously merged into the notebook server repo.

Thank you for contributing!

@echarles echarles merged commit a4e1d53 into jupyter-server:master Dec 3, 2019
Zsailer added a commit to Zsailer/jupyter_server that referenced this pull request Nov 18, 2022
* add a kernel-starting status message

* Bump to 0.12.6
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.

3 participants