Skip to content

Conversation

@0utplay
Copy link
Member

@0utplay 0utplay commented Dec 23, 2024

Motivation

Executing a lot of commands while e.g. services are starting (printing messages to the console) can lead to dead locks. This issue was probably introduced with the cloud 2.0 migration. Prior to cloud 2.0 the framework used to run suggestions on the caller thread. With cloud 2.0 a shared thread pool for suggestion, parsing and executing can be used. This then leads to dead locks.

Modification

Explicitly set the thread pool for parsing & executing only. Suggestions are processed on the caller thread (thus restoring cloud 1.0 behavior.

Result

No dead-locks of the console.

@0utplay 0utplay added v: 4.X This pull should be included in the 4.0 release in: node An issue/pull request releated to the node module code t: fix A pull request introducing a fix for a bug. labels Dec 23, 2024
@0utplay 0utplay added this to the 4.0.0-RC12 milestone Dec 23, 2024
@0utplay 0utplay requested a review from derklaro December 23, 2024 12:37
@0utplay 0utplay self-assigned this Dec 23, 2024
@github-actions
Copy link

Test Results

 48 files  ±0   48 suites  ±0   1m 42s ⏱️ +9s
420 tests ±0  420 ✅ ±0  0 💤 ±0  0 ❌ ±0 
751 runs  ±0  751 ✅ ±0  0 💤 ±0  0 ❌ ±0 

Results for commit f6ecced. ± Comparison against base commit 9389d89.

@0utplay 0utplay merged commit 790ec42 into nightly Dec 24, 2024
5 of 6 checks passed
@0utplay 0utplay deleted the fix/cloud-command-dead-lock branch December 24, 2024 12:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

in: node An issue/pull request releated to the node module code t: fix A pull request introducing a fix for a bug. v: 4.X This pull should be included in the 4.0 release

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants