Skip to content

[cli-dev-mode] complete shutdown once devServer stops gracefully#95822

Merged
spalger merged 2 commits intoelastic:masterfrom
spalger:fix/cli-dev-mode-exit
Mar 30, 2021
Merged

[cli-dev-mode] complete shutdown once devServer stops gracefully#95822
spalger merged 2 commits intoelastic:masterfrom
spalger:fix/cli-dev-mode-exit

Conversation

@spalger
Copy link
Contributor

@spalger spalger commented Mar 30, 2021

In #95145 CliDevMode is now responsible for the lifecycle of the entire CLI, but we forgot to double check that it was shutting things down as it should. The plumbing was already in place for this but wasn't actually used before because src/core calls process.exit(0) once it is finished shutting down, so we now need to call CliDevMode#stop() when we should finally teardown all of the listeners, watchers, servers, etc. that are started by CliDevMode.

@spalger spalger added Team:Operations Kibana-Operations Team v8.0.0 release_note:skip Skip the PR/issue when compiling release notes v7.13.0 labels Mar 30, 2021
@spalger
Copy link
Contributor Author

spalger commented Mar 30, 2021

@elasticmachine merge upstream

@kibanamachine
Copy link
Contributor

💚 Build Succeeded

Metrics [docs]

✅ unchanged

History

To update your PR or re-run it, just comment with:
@elasticmachine merge upstream

@spalger spalger marked this pull request as ready for review March 30, 2021 21:58
@spalger spalger requested a review from a team as a code owner March 30, 2021 21:58
@elasticmachine
Copy link
Contributor

Pinging @elastic/kibana-operations (Team:Operations)

@spalger spalger merged commit c35ef75 into elastic:master Mar 30, 2021
@spalger spalger deleted the fix/cli-dev-mode-exit branch March 30, 2021 22:57
@spalger spalger added the auto-backport Deprecated - use backport:version if exact versions are needed label Mar 30, 2021
kibanamachine added a commit to kibanamachine/kibana that referenced this pull request Mar 30, 2021
…stic#95822)

Co-authored-by: spalger <spalger@users.noreply.github.com>
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
@kibanamachine
Copy link
Contributor

💚 Backport successful

7.x / #95878

This backport PR will be merged automatically after passing CI.

kibanamachine added a commit that referenced this pull request Mar 31, 2021
) (#95878)

Co-authored-by: spalger <spalger@users.noreply.github.com>
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>

Co-authored-by: Spencer <email@spalger.com>
Co-authored-by: spalger <spalger@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

auto-backport Deprecated - use backport:version if exact versions are needed release_note:skip Skip the PR/issue when compiling release notes Team:Operations Kibana-Operations Team v7.13.0 v8.0.0

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants