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 deadlock starting canvas, core_plugins/interpreter and kbn-interpreter in node 10 #26043

Closed
wants to merge 5 commits into from

Conversation

mistic
Copy link
Member

@mistic mistic commented Nov 21, 2018

The changes introduced by #25711 makes my #25157 PR to hang without any error (just waiting forever) when running yarn start.

The cause is basically related with the fact that on canvas/initwe were await getServerRegistries() and the function to fulfil the returned promise was supposed to be ran by core_plugins/interpreter/init on await populateServerRegistries(['serverFunctions', 'types']); however as canvas is loaded first in Node 10, the server will wait forever in a dead lock.

It also fixes a change added to the base_optimizer and make it owning the build for kbn/interpreter. The base_optimizer should be as generic as possible, so I just created an ignore for the babel_register for the kbn-interpreter and turn the public responsible for it owns build using the babel-cli.

@mistic mistic added review v7.0.0 Team:Presentation Presentation Team for Dashboard, Input Controls, and Canvas v6.6.0 labels Nov 21, 2018
@mistic mistic requested review from w33ble and spalger November 21, 2018 19:32
@elasticmachine
Copy link
Contributor

Pinging @elastic/kibana-canvas

@rashidkpc rashidkpc requested review from ppisljar and removed request for w33ble November 21, 2018 20:35
@w33ble w33ble added the Team:Visualizations Visualization editors, elastic-charts and infrastructure label Nov 21, 2018
@elasticmachine
Copy link
Contributor

Pinging @elastic/kibana-app

@mistic mistic force-pushed the fix-canvas-deadlock-on-node10 branch from f667bc2 to fa340c2 Compare November 21, 2018 22:41
@elastic elastic deleted a comment from elasticmachine Nov 21, 2018
@elastic elastic deleted a comment from elasticmachine Nov 21, 2018
@elastic elastic deleted a comment from elasticmachine Nov 21, 2018
@elastic elastic deleted a comment from elasticmachine Nov 21, 2018
@elastic elastic deleted a comment from elasticmachine Nov 22, 2018
@mistic mistic force-pushed the fix-canvas-deadlock-on-node10 branch from 8904158 to 51bcf08 Compare November 22, 2018 01:51
@elastic elastic deleted a comment from elasticmachine Nov 22, 2018
@elastic elastic deleted a comment from elasticmachine Nov 22, 2018
@elasticmachine
Copy link
Contributor

💔 Build Failed

@mistic
Copy link
Member Author

mistic commented Nov 22, 2018

Closed in favor of #26068

@mistic mistic closed this Nov 22, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
review Team:Presentation Presentation Team for Dashboard, Input Controls, and Canvas Team:Visualizations Visualization editors, elastic-charts and infrastructure v6.6.0 v7.0.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants