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

fix(node-runtime-worker-thread): Propagate child process startup errors for thread runtime #721

Merged

Conversation

gribnoysup
Copy link
Contributor

@gribnoysup gribnoysup commented Mar 17, 2021

As spotted by @addaleax if child process or worker thread fails to start (e.g., when you are developing a new feature), worker runtime just never resolves any requests to evaluate. This PR fixes the issue by handling possible errors during the init state of the worker runtime and re-throwing them in the main thread so users can see them in the shell:

image

Also spotted and fixed a tiny issue when running compass-shell in isolation locally (shakes fist at webpack)

@gribnoysup gribnoysup changed the title fix(node-runtime-worker-thread): Propagate child process errors for thread runtime fix(node-runtime-worker-thread): Propagate child process startup errors for thread runtime Mar 17, 2021
…ken characters when collecting stream chunks

Co-authored-by: Anna Henningsen <anna.henningsen@mongodb.com>
@gribnoysup gribnoysup merged commit dae5b91 into master Mar 17, 2021
@gribnoysup gribnoysup deleted the propagate-child-process-and-worker-errors-for-thread-runtime branch March 17, 2021 12:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants