-
Notifications
You must be signed in to change notification settings - Fork 360
Description
Description
It could only be reproduced in great lag?
As we all know, once request_kernel_info is called, jupyter server would cache connection's _kernel_info_future to kernel manager and keep reusing as below
Below corner case could shown up with great network latency (in our case, we have jupyter frotnend running in Singapore and backend running at EU)
-
When open notebook, kernel_info_request is sent with future cached as reused
-
If user clicks restart meanwhile, the request in 1 may possibly never get response.
-
In this case, the restart kernel would keep awaiting the future generated bt step 1, which would never be available till the end of timeout (which is 60s)
Reproduce
Can only be reproduced with great network latency
- Open notebook in jupyterlab
- Click restart and run all button before kernel connected
Expected behavior
Context
-
Operating System and version: we are using docker with image built on rhel 8, and host server Ubuntu (this corner case could be portable across at least unix-like systems)
-
Browser and version: Chrome v138 (shall be irrelevant with front end)
-
Jupyter Server version: 2.14.1
Troubleshoot Output
Paste the output from running `jupyter troubleshoot` from the command line here. You may want to sanitize the paths in the output.
Command Line Output
Paste the output from your command line running `jupyter lab` here, use `--debug` if possible.
Browser Output
Paste the output from your browser Javascript console here, if applicable.