Skip to content
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

Closed
wants to merge 1 commit into from

Conversation

evanlucas
Copy link
Contributor

@evanlucas evanlucas commented Aug 6, 2016

Checklist
  • make -j4 test (UNIX), or vcbuild test nosign (Windows) passes
  • tests and/or benchmarks are included
  • documentation is changed or added
  • commit message follows commit guidelines
Affected 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

@nodejs-github-bot nodejs-github-bot added the cluster Issues and PRs related to the cluster subsystem. label Aug 6, 2016
@ChALkeR ChALkeR added the semver-minor PRs that contain new features and should be released in the next minor version. label Aug 6, 2016
@ChALkeR
Copy link
Member

ChALkeR commented Aug 6, 2016

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.

@evanlucas
Copy link
Contributor Author

Thanks @ChALkeR. Updated.

@evanlucas
Copy link
Contributor Author


* {Boolean}

Alias to [`worker.suicide`][].
Copy link
Member

@ChALkeR ChALkeR Aug 6, 2016

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)?

Copy link
Contributor Author

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
@ChALkeR
Copy link
Member

ChALkeR commented Aug 8, 2016

LGTM.

@addaleax
Copy link
Member

addaleax commented Aug 8, 2016

LGTM, CI is green

@jasnell
Copy link
Member

jasnell commented Aug 8, 2016

LGTM

@jasnell
Copy link
Member

jasnell commented Aug 9, 2016

@nodejs/lts WG ... any objections to this?

@MylesBorins
Copy link
Contributor

lgtm

On Tue, Aug 9, 2016, 3:25 PM James M Snell [email protected] wrote:

@nodejs/lts https://github.com/orgs/nodejs/teams/lts WG ... any
objections to this?


You are receiving this because you are on a team that was mentioned.

Reply to this email directly, view it on GitHub
#7998 (comment), or mute
the thread
https://github.com/notifications/unsubscribe-auth/AAecV69eMcp-QQIstBsK74oth1Nxdkppks5qeNQYgaJpZM4JeVZh
.

jasnell pushed a commit that referenced this pull request Aug 12, 2016
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]>
@jasnell
Copy link
Member

jasnell commented Aug 12, 2016

Landed in v4.x-staging in 810f29f

@jasnell jasnell closed this Aug 12, 2016
@evanlucas
Copy link
Contributor Author

Thanks @jasnell!

@evanlucas evanlucas deleted the backportclustert branch August 12, 2016 18:30
@sam-github
Copy link
Contributor

@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.

@MylesBorins
Copy link
Contributor

@sam-github that seems like what happened

We could modify it to be semver patch (reverse the alias)

@bnoordhuis
Copy link
Member

For v4.x? That's rather stretching the credibility of semver and maintenance mode...

@gibfahn
Copy link
Member

gibfahn commented Jun 15, 2017

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 semver-minor worse than a semver-patch? I'd say that a small, low-risk minor like this is less of an issue than a large, more risky patch like #13233.

@bnoordhuis
Copy link
Member

I also don't understand the reasoning behind "no semver-minors in maintenance mode". Why is a semver-minor worse than a semver-patch?

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.

@gibfahn
Copy link
Member

gibfahn commented Jun 15, 2017

Because it's a slippery slope. If you accept this semver-minor change, how can you reasonably reject others?

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 minor or a patch. It's not as if we accept all patches because we're accepting one.

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 minor or a patch.

@bnoordhuis
Copy link
Member

Are we using the same definition of maintenance mode? To me, it means this:

no more changes except critical bug fixes.

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.

@MylesBorins
Copy link
Contributor

I've opened nodejs/Release#232 to move the v4.x conversation

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cluster Issues and PRs related to the cluster subsystem. semver-minor PRs that contain new features and should be released in the next minor version.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

10 participants