| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
|
Ok with the idea. Using the term suicide likely isn't the best choice, however. |
Sorry, something went wrong.
|
suicide is an existing term, used throughout the code. Changing it would be a semver-major bump. |
Sorry, something went wrong.
|
Yeah, I was just looking at that. That's unfortunate but ok. |
Sorry, something went wrong.
|
Technically, this changes behavior, but it brings it back into line with what is documented (see #3238). I would say it is semver-patch. |
Sorry, something went wrong.
|
@jasnell suicide is definitely problematic... so is Master / Worker and a handful of other Nouns / Verbs throughout the codebase. As mentioned, changing any of those would be an obvious semver major... it would also require a lot of churn in the ecosystem. That being said, I think that the benefits to our ethics / ethos / community outweighs the potential technical debt. If people are open to it we can open an issue to discuss this further. |
Sorry, something went wrong.
|
we could alias 'suicide' to another word in the codebase to maintain reverse compatibility while moving to the new word and updating the docs. then it's a feature rather than compat break and stays semver-minor. |
Sorry, something went wrong.
|
Yep. I had just forgotten that the term was already in use. I'm painfully aware of the various unfortunate other uses I just didn't want us to add another. I'm +1 on @mikeal's proposal. |
Sorry, something went wrong.
There was a problem hiding this comment.
Can you wrap the event listeners in common.mustCall(...)?
Sorry, something went wrong.
There was a problem hiding this comment.
Aside: perhaps it's a good idea to check the order of events as well?
Sorry, something went wrong.
|
@cjihrig ... ah, ok, so this is a regression fix. Grr... ok. Agree with semver-patch then. I would recommend expanding the description in the commit message to describe the regression. |
Sorry, something went wrong.
This commit causes Worker.prototype.disconnect() to send a suicide message to the cluster master. The function is also restructured to eliminate redundant code. Fixes: nodejs#3238
|
Updated with @bnoordhuis comments. |
Sorry, something went wrong.
|
LGTM. Applicable for LTS? (assuming yes) |
Sorry, something went wrong.
|
I'd say yes. The documentation is incorrect without this change. |
Sorry, something went wrong.
Sorry, something went wrong.
|
Landed in f299d87. @evanlucas you may need to update your suicide replacement PR accordingly. |
Sorry, something went wrong.
|
Will do. Thanks for the heads up |
Sorry, something went wrong.
| Back | FazBrowse Home | New Git URL |
This commit causes Worker.prototype.disconnect() to send a suicide message to the cluster master. The function is also restructured to eliminate redundant code.
Fixes: #3238