Skip to content

Fix deadlock starting canvas, core_plugins/interpreter and kbn-interpreter in node 10#26043

Closed
mistic wants to merge 5 commits intoelastic:masterfrom
mistic:fix-canvas-deadlock-on-node10
Closed

Fix deadlock starting canvas, core_plugins/interpreter and kbn-interpreter in node 10#26043
mistic wants to merge 5 commits intoelastic:masterfrom
mistic:fix-canvas-deadlock-on-node10

Conversation

@mistic
Copy link
Copy Markdown
Contributor

@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 t// v6.6.0 labels Nov 21, 2018
@mistic mistic requested review from spalger and w33ble November 21, 2018 19:32
@elasticmachine
Copy link
Copy Markdown
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 Team label for Lens, elastic-charts, Graph, legacy editors (TSVB, Visualize, Timelion) t// label Nov 21, 2018
@elasticmachine
Copy link
Copy Markdown
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
Copy Markdown
Contributor

💔 Build Failed

@mistic
Copy link
Copy Markdown
Contributor 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 t// Team:Visualizations Team label for Lens, elastic-charts, Graph, legacy editors (TSVB, Visualize, Timelion) t// v6.6.0 v7.0.0

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants