Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Workaround for launch bug #861

Merged
merged 1 commit into from Oct 24, 2022
Merged

Conversation

blink1073
Copy link
Member

cc @kevin-bates

This prevents a race condition where the kernel launch process is attempting to read the connection file, and we overwrite the file while it is being read. The symptom is that the kernel fails to start because it cannot decode the JSON in the connection file.

We should backport this fix to 7.x, but I think for 8.x we should change it so that the provisioner is entirely responsible for the handling of the connection file, even if the information lives on the kernel manager. Nothing would change for the local provisioner.

@blink1073 blink1073 added the bug label Oct 22, 2022
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.

LGTM.
I completely agree with your comment regarding the provisioner's role relative to the connection file.

@blink1073 blink1073 merged commit ddf7028 into jupyter:main Oct 24, 2022
@blink1073 blink1073 deleted the fix-pending-kernels-3 branch October 24, 2022 13:59
@blink1073
Copy link
Member Author

@meeseeksdev please backport to 7.x

meeseeksmachine pushed a commit to meeseeksmachine/jupyter_client that referenced this pull request Oct 24, 2022
blink1073 added a commit that referenced this pull request Oct 24, 2022
Co-authored-by: Steven Silvester <steven.silvester@ieee.org>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants