-
Notifications
You must be signed in to change notification settings - Fork 5
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
troubleshoot 3rd party signal handling and child process termination #40
Comments
@Courey, I took the liberty of editing the stakeholders section. |
I've also noticed that at startup, an error is raised with the opensearch sandbox connection before the sandbox is able to start properly:
I've only included a snippet here so as to not leave an overly long comment, but this error is raised about 5 times before the sandbox connects. Any chance this is related, or is this expected behaviour? |
No, that's not related. The Remix app server starts up faster than OpenSearch does; you'll get that error message if you navigate to a route that talks to OpenSearch before it is ready. It's unrelated and harmless. |
We have a new lead to chase down: nasa-gcn/gcn.nasa.gov#2010. |
This ticket is blocked by nasa-gcn/gcn.nasa.gov#2010 |
@Courey, would you please check if architect/sandbox#732 made a difference? |
Bug Report Details⚠️ 🐛
Description
When using
npm run
toremix run
to runarc sandbox
which uses dockerode to start a docker instance, if you use control + c to close the process, the child processes do not gracefully terminate this can lead to hanging containers till they are killed in the 10 second docker timeout.Steps to Reproduce
Steps to Reproduce
When you are using dev_v2 mode in an Architect app, when you interrupt npm run dev with ^C, it kills all subprocesses with extreme prejudice and does not permit Architect plugins to clean up.
To reproduce:
Expected Behavior
The dev server should come down cleanly and you should see both of the log messages from the Architect sandbox plugin, both starting example sandbox plugin and stopping example sandbox plugin. Here's the good output with dev_v2: false set. For a reproducer, see https://github.com/lpsinger/remix-bug-report-arc-sandbox-killed-ungracefully/tree/dev_v1.
Actual Behavior
Here's the bad output. You see starting example sandbox plugin, but you never see stopping example sandbox plugin. For a reproducer, see https://github.com/lpsinger/remix-bug-report-arc-sandbox-killed-ungracefully/tree/dev_v2.
Links to feature design doc, conversations, mockups, etc.
Leo's original issue
Stakeholders
Active developers using macOS and developers working on OpenSearch/Elasticsearch.
@lpsinger, @Courey, @ronitagarwala01, @tylerbarna, @Vidushi-GitHub
Acceptance Criteria
The cause of the errant signal handling across all the packages must be figured out and solutions offered.
The text was updated successfully, but these errors were encountered: