-
Notifications
You must be signed in to change notification settings - Fork 29.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
cluster: alias suicide to exitedAfterDisconnect #7998
Conversation
Actual code changes LGTM, but I don't think that there is any value in adding this without the documentation — that would still mean that users wouldn't be able rely on it in 4.x. I think that documentation should also be added, mentioning that this is an alias. |
9cab00e
to
90de681
Compare
Thanks @ChALkeR. Updated. |
|
||
* {Boolean} | ||
|
||
Alias to [`worker.suicide`][]. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This link doesn't seem to work. Perhaps the definition is missing (at the end of file)?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
yep, fixed, sorry about that
This is a backport of 4f619bd which migrates from worker.suicide to worker.exitedAfterDisconnect. Related: nodejs#3743
90de681
to
d101576
Compare
LGTM. |
LGTM, CI is green |
LGTM |
@nodejs/lts WG ... any objections to this? |
lgtm On Tue, Aug 9, 2016, 3:25 PM James M Snell [email protected] wrote:
|
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]>
Landed in v4.x-staging in 810f29f |
Thanks @jasnell! |
@nodejs/lts this says it landed in v4.x-staging, but maybe it later got rebased out again? I can't find any sign of it, and I can't checkout 810f29f on my local repo, which makes it not reachable from any branches. |
@sam-github that seems like what happened We could modify it to be semver patch (reverse the alias) |
For v4.x? That's rather stretching the credibility of semver and maintenance mode... |
As I said in nodejs/Release#231 (comment), I don't see how this lands as a patch, as it's a new property. However, I don't see the harm in including this in an upcoming 4.x release, it has the clear benefit of allowing people to write code that works on all supported releases (without deprecation warnings). The point of maintenance is that we don't land things unless we have a good reason, and I think we do here. I also don't understand the reasoning behind "no semver-minors in maintenance mode". Why is a |
Because it's a slippery slope. If you accept this semver-minor change, how can you reasonably reject others? The point of maintenance mode is that you say: this is it, no more changes except critical bug fixes. |
But what does that have to do with the semver-ness? We only include things that people request, and that the LTS team (and de facto collaborators in general) think are worth making an exception for. We reject most changes because there is no obvious need, whether it's a To be clear, I'm happy to debate whether this change should land, but I don't see why we (collaborators) or end users of node would care about whether it's a |
Are we using the same definition of maintenance mode? To me, it means this:
The goal is to reduce the overall work load. If people want new features, they can upgrade. A semver-minor change is by definition not a bug fix, it's a new feature. If you want to land those in v4.x, fine, but you can't call it maintenance mode anymore - it's just another release line, with all the extra work and agony that entails. |
I've opened nodejs/Release#232 to move the v4.x conversation |
Checklist
make -j4 test
(UNIX), orvcbuild test nosign
(Windows) passesAffected core subsystem(s)
cluster
Description of change
This is a backport of 4f619bd which
migrates from worker.suicide to worker.exitedAfterDisconnect.
I did not add documentation as I wasn't sure if we wanted to document it or not.
Related: #3743