GeezerVisonThe World Wide Web, restored to 800 pixels of glory. | ||||||||||||||||||||||
| Home|About|Gaming cabinet|Archives|How it works|Starter sites | ||||||||||||||||||||||
GeezerVison is showing github.com — cluster: migrate from worker.suicide by evanlucas · Pull Request #3743 · nodejs/node Conversation
|
|
LGTM |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
Test suite passes locally fwiw |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
please add exit, it was just voluntary -> it was just voluntary exit
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
LGTM with one comment |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
"deprecate" is the wrong term here since you are ensuring exisiting compatibility. maybe "migrating" instead? |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
also, maybe not print the deprecation warning until the next major release. |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
do you need to watch for the 'suicide' action here to guarantee compatibility?
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
since the message should only be internal, I don't think so. Unless you or someone else feel differently about it
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
makes sense to me 😄
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
LGTM but we need to be clear about the impact of this, however. It is quite likely a semver-major change (any time we talk about changing event names and deprecating existing terms we likely have to consider it a semver-major). That means getting a deprecation notice into v5 first, then not landing the actual change until v6. |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
@jasnell if it's backwards compatible why would it be a semver-major change? |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
I said "likely" ;-). The one part of this change that is potentially not backwards compatible is the event that's being triggered (https://github.com/nodejs/node/pull/3743/files#diff-0faa53fc02580d5de2ebb484c41d691cR696). Specifically, are we reasonably certain that this isn't breaking? |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
A more boolean terminology like |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
@jasnell I believe that those messages are only sent to/from a cluster by the cluster and workers. |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
Ok. If we're reasonably sure that it's not breaking, I'm good with semver-minor. |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
@Qard I'm fine with either. If you feel strongly about it, I will change it |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
Should this message include information about when (date or version) to expect deprecation to become removal?
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
Should be slated for a major version. Honestly, we should just merge this and then open another PR right away with the deprecation warning since master is v6.
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
Should I just add a second commit? That way we can cherry-pick the first over to v5 and not the actual deprecation?
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
yes :)
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
@ChALkeR I know you didn't feel for it, but could you run some npm analysis on the usage of this API if possible? (Also cc @chrisdickinson) |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
As others have said I also think it may be worthwhile to think of a version of |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
Although long, if that is the way we want to go, I think |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
So long as we can avoid naming like |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
Updated to change to |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
hrm... I may have misspoke. since we tag the PR to automatically do the version updates we may need two PRs for the two commits since one is semver-minor and one is semver-major. |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
|
Btw, this wasn't backported to 4.x, was it? Perhaps it is too late now as 4.5 already got rcs (cc @thealphanerd), but if there would be 4.6 sometime, it could make sense to backport it the other way around and without the deprecation — i.e. make |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
+1 SGTM On Friday, August 5, 2016, Сковорода Никита Андреевич <
|
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
Because given our LTS timeline, if we don't make 4.x support |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
I'll submit a backport PR today |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
This is a backport of 4f619bd which migrates from worker.suicide to worker.exitedAfterDisconnect. Related: nodejs#3743
This is a backport of 4f619bd which migrates from worker.suicide to worker.exitedAfterDisconnect. Refs: #3743 PR-URL: #7998 Reviewed-By: Сковорода Никита Андреевич <[email protected]> Reviewed-By: Anna Henningsen <[email protected]> Reviewed-By: James M Snell <[email protected]> Reviewed-By: Myles Borins <[email protected]>
The defaul value of worker.exitedAfterDisconnect is undefined. If the worker dies on its own the value is changed to false and doesn't remains undefined. While the documentation just mentions 'Set by calling .kill() or .disconnect(). Until then, it is undefined.'. Making the default value as false in worker.js Fixes: nodejs#28837 Refs: nodejs#3743
Fixed the documentaion to reflect the changes in the default value of worker.exitedAfterDisconnect Fixes: nodejs#28837 Refs: nodejs#3743
The test checka for the exit code of the worker. cluster on exit must be called. And the value for exitedAfterDisconnect should be false Fixes: nodejs#28837 Refs: nodejs#3743
fixed the test that checked for default value undefined to false and renamed the test that checks for the value exitedAfterDisconnect if the worker exits on its own. Fixes: nodejs#28837 Refs: nodejs#3743
Fixed the documentation to reflect the changes in the default value of worker.exitedAfterDisconnect Fixes: nodejs#28837 Refs: nodejs#3743
Fixed the documentation to reflect the changes in the default value of worker.exitedAfterDisconnect PR-URL: #29404 Fixes: #28837 Refs: #3743 Reviewed-By: David Carlier <[email protected]> Reviewed-By: Anto Aravinth <[email protected]>
Fixed the documentation to reflect the changes in the default value of worker.exitedAfterDisconnect PR-URL: #29404 Fixes: #28837 Refs: #3743 Reviewed-By: David Carlier <[email protected]> Reviewed-By: Anto Aravinth <[email protected]>
Fixed the documentation to reflect the changes in the default value of worker.exitedAfterDisconnect PR-URL: #29404 Fixes: #28837 Refs: #3743 Reviewed-By: David Carlier <[email protected]> Reviewed-By: Anto Aravinth <[email protected]>
There was an error while loading. Please reload this page.
Successfully merging this pull request may close these issues.
There was an error while loading. Please reload this page.