Skip to content

cluster: fix error on worker disconnect/destroy - #32793

Closed
santigimeno wants to merge 1 commit into
nodejs:masterfrom
santigimeno:fix_32106_2
Closed

cluster: fix error on worker disconnect/destroy#32793
santigimeno wants to merge 1 commit into
nodejs:masterfrom
santigimeno:fix_32106_2

Conversation

@santigimeno

Copy link
Copy Markdown
Member

Avoid sending multiple exitedAfterDisconnect messages when
concurrently calling disconnect() and/or destroy() from the worker
so ERR_IPC_DISCONNECTED errors are not generated.

Not completely sure if it's something that should be fixed in the module or in the user code, but just in case...

Fixes: #32106

Checklist
  • make -j4 test (UNIX), or vcbuild test (Windows) passes
  • tests and/or benchmarks are included
  • documentation is changed or added
  • commit message follows commit guidelines

Avoid sending multiple `exitedAfterDisconnect` messages when
concurrently calling `disconnect()` and/or `destroy()` from the worker
so `ERR_IPC_DISCONNECTED` errors are not generated.
Fixes: nodejs#32106
@nodejs-github-botnodejs-github-bot added the cluster Issues and PRs related to the cluster subsystem. label Apr 12, 2020
Comment threadtest/parallel/test-cluster-concurrent-disconnect.js
Comment threadlib/internal/cluster/child.js
@ronag
ronag requested a review from addaleaxApril 26, 2020 16:58
@addaleaxaddaleax added the author ready PRs that have at least one approval, no pending requests for changes, and a CI started. label Apr 27, 2020
@nodejs-github-bot

Copy link
Copy Markdown
Collaborator

addaleax pushed a commit that referenced this pull request Apr 28, 2020
Avoid sending multiple `exitedAfterDisconnect` messages when
concurrently calling `disconnect()` and/or `destroy()` from the worker
so `ERR_IPC_DISCONNECTED` errors are not generated.
Fixes: #32106
PR-URL: #32793
Reviewed-By: Zeyu Yang <himself65@outlook.com>
Reviewed-By: Anna Henningsen <anna@addaleax.net>
@addaleax

Copy link
Copy Markdown
Member

Landed in 73324cf

targos pushed a commit that referenced this pull request May 4, 2020
Avoid sending multiple `exitedAfterDisconnect` messages when
concurrently calling `disconnect()` and/or `destroy()` from the worker
so `ERR_IPC_DISCONNECTED` errors are not generated.
Fixes: #32106
PR-URL: #32793
Reviewed-By: Zeyu Yang <himself65@outlook.com>
Reviewed-By: Anna Henningsen <anna@addaleax.net>
@targostargos mentioned this pull request May 4, 2020
targos pushed a commit that referenced this pull request May 7, 2020
Avoid sending multiple `exitedAfterDisconnect` messages when
concurrently calling `disconnect()` and/or `destroy()` from the worker
so `ERR_IPC_DISCONNECTED` errors are not generated.
Fixes: #32106
PR-URL: #32793
Reviewed-By: Zeyu Yang <himself65@outlook.com>
Reviewed-By: Anna Henningsen <anna@addaleax.net>
@targostargos mentioned this pull request May 7, 2020
targos pushed a commit that referenced this pull request May 13, 2020
Avoid sending multiple `exitedAfterDisconnect` messages when
concurrently calling `disconnect()` and/or `destroy()` from the worker
so `ERR_IPC_DISCONNECTED` errors are not generated.
Fixes: #32106
PR-URL: #32793
Reviewed-By: Zeyu Yang <himself65@outlook.com>
Reviewed-By: Anna Henningsen <anna@addaleax.net>
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

author readyPRs that have at least one approval, no pending requests for changes, and a CI started.clusterIssues and PRs related to the cluster subsystem.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Cluster IPC ERR_IPC_DISCONNECTED EPIPE

4 participants

@santigimeno@nodejs-github-bot@addaleax@himself65