Skip to content

doc: document that addMembership must be called once in a cluster - #23746

Closed
jasnell wants to merge 5 commits into
nodejs:masterfrom
jasnell:udp-add-membership-cluster
Closed

doc: document that addMembership must be called once in a cluster#23746
jasnell wants to merge 5 commits into
nodejs:masterfrom
jasnell:udp-add-membership-cluster

Conversation

@jasnell

Copy link
Copy Markdown
Member

Fixes: #12572
Refs: #16240

Checklist

@nodejs-github-bot

Copy link
Copy Markdown
Collaborator

@nodejs-github-botnodejs-github-bot added dgram Issues and PRs related to the dgram subsystem / UDP. doc Issues and PRs related to the documentations. labels Oct 19, 2018
Comment threaddoc/api/dgram.md Outdated
available interface, call `addMembership` multiple times, once per interface.

When sharing a UDP socket across multiple `cluster` workers, the
`socket.addMembership()` function must only be called *only once* or an

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There is one too many occurrences of the word only.

FWIW, I'd avoid the italics here too.

Copy link
Copy Markdown
MemberAuthor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Feel free to make any edits you'd like

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There is the new github feature to make suggestions that add a commit by accepting the suggestion :-)

@vsemozhetbytvsemozhetbytOct 19, 2018

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If I am not mistaken, any Collaborator can assign themselves to a PR and accept an own proposed change. This can alleviate nit addressing for the PR author, but also can be felt like a bit arbitrarily thing. But if a PR author declares concent, this seems OK.

Comment threaddoc/api/dgram.md Outdated
```js
const cluster = require('cluster');
const dgram = require('dgram');
if (cluster.isMaster) {

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Linter is failing because of indentation issues on this line and the next two lines.

@lpincalpinca left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM with nits addressed.

@jasnelljasnell added the author ready PRs that have at least one approval, no pending requests for changes, and a CI started. label Oct 19, 2018
@vsemozhetbyt

vsemozhetbyt commented Oct 19, 2018

Copy link
Copy Markdown
Contributor

Experiment: I am trying to assign myself to the PR and accept my own nit change proposal (which === pushing to the PR branch?).

@vsemozhetbytvsemozhetbyt self-assigned this Oct 19, 2018
Comment threaddoc/api/dgram.md Outdated
Comment threaddoc/api/dgram.md Outdated
vsemozhetbytand others added 2 commits October 19, 2018 07:58
Co-Authored-By: jasnell <jasnell@gmail.com>
Co-Authored-By: jasnell <jasnell@gmail.com>
@jasnell

Copy link
Copy Markdown
MemberAuthor

Oh! Sorry @vsemozhetbyt ... I accepted the changes then saw you note about trying an experiment... hopefully I didn't mess it up

@vsemozhetbyt

vsemozhetbyt commented Oct 19, 2018

Copy link
Copy Markdown
Contributor

Fails: I can see "Apply suggestion" button, But I cannot apply the change:

Screenshots:

fx1
fx2


@vsemozhetbyt

Copy link
Copy Markdown
Contributor

Not sure if this was a race condition, we can try it again later in some other PR)

@vsemozhetbytvsemozhetbyt removed their assignment Oct 19, 2018
@jasnelljasnell added the fast-track PRs that do not need to wait for 48 hours to land. label Oct 19, 2018
@jasnell

Copy link
Copy Markdown
MemberAuthor

Please 👍 to fast track

jasnell added a commit that referenced this pull request Oct 23, 2018
Fixes: #12572
Refs: #16240
PR-URL: #23746
Reviewed-By: Refael Ackermann <refack@gmail.com>
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
Reviewed-By: Trivikram Kamat <trivikr.dev@gmail.com>
@jasnell

Copy link
Copy Markdown
MemberAuthor

Landed in 30d42f6

@jasnelljasnell closed this Oct 23, 2018
targos pushed a commit that referenced this pull request Oct 24, 2018
Fixes: #12572
Refs: #16240
PR-URL: #23746
Reviewed-By: Refael Ackermann <refack@gmail.com>
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
Reviewed-By: Trivikram Kamat <trivikr.dev@gmail.com>
@targostargos mentioned this pull request Oct 27, 2018
MylesBorins pushed a commit that referenced this pull request Nov 26, 2018
Fixes: #12572
Refs: #16240
PR-URL: #23746
Reviewed-By: Refael Ackermann <refack@gmail.com>
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
Reviewed-By: Trivikram Kamat <trivikr.dev@gmail.com>
MylesBorins pushed a commit that referenced this pull request Nov 26, 2018
Fixes: #12572
Refs: #16240
PR-URL: #23746
Reviewed-By: Refael Ackermann <refack@gmail.com>
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
Reviewed-By: Trivikram Kamat <trivikr.dev@gmail.com>
MylesBorins pushed a commit that referenced this pull request Nov 26, 2018
Fixes: #12572
Refs: #16240
PR-URL: #23746
Reviewed-By: Refael Ackermann <refack@gmail.com>
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
Reviewed-By: Trivikram Kamat <trivikr.dev@gmail.com>
@codebyterecodebytere mentioned this pull request Nov 27, 2018
rvagg pushed a commit that referenced this pull request Nov 28, 2018
Fixes: #12572
Refs: #16240
PR-URL: #23746
Reviewed-By: Refael Ackermann <refack@gmail.com>
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
Reviewed-By: Trivikram Kamat <trivikr.dev@gmail.com>
rvagg pushed a commit that referenced this pull request Nov 28, 2018
Fixes: #12572
Refs: #16240
PR-URL: #23746
Reviewed-By: Refael Ackermann <refack@gmail.com>
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
Reviewed-By: Trivikram Kamat <trivikr.dev@gmail.com>
rvagg pushed a commit that referenced this pull request Nov 28, 2018
Fixes: #12572
Refs: #16240
PR-URL: #23746
Reviewed-By: Refael Ackermann <refack@gmail.com>
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
Reviewed-By: Trivikram Kamat <trivikr.dev@gmail.com>
MylesBorins pushed a commit that referenced this pull request Nov 29, 2018
Fixes: #12572
Refs: #16240
PR-URL: #23746
Reviewed-By: Refael Ackermann <refack@gmail.com>
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
Reviewed-By: Trivikram Kamat <trivikr.dev@gmail.com>
@codebyterecodebytere mentioned this pull request Nov 29, 2018
@BethGriggsBethGriggs mentioned this pull request Dec 4, 2018
MylesBorins pushed a commit that referenced this pull request Dec 26, 2018
Fixes: #12572
Refs: #16240
PR-URL: #23746
Reviewed-By: Refael Ackermann <refack@gmail.com>
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
Reviewed-By: Trivikram Kamat <trivikr.dev@gmail.com>
rvagg pushed a commit that referenced this pull request Feb 28, 2019
Fixes: #12572
Refs: #16240
PR-URL: #23746
Reviewed-By: Refael Ackermann <refack@gmail.com>
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
Reviewed-By: Trivikram Kamat <trivikr.dev@gmail.com>
BethGriggs pushed a commit that referenced this pull request Mar 7, 2019
Fixes: #12572
Refs: #16240
PR-URL: #23746
Reviewed-By: Refael Ackermann <refack@gmail.com>
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
Reviewed-By: Trivikram Kamat <trivikr.dev@gmail.com>
@BethGriggsBethGriggs mentioned this pull request Mar 15, 2019
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.dgramIssues and PRs related to the dgram subsystem / UDP.docIssues and PRs related to the documentations.fast-trackPRs that do not need to wait for 48 hours to land.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

9 participants

@jasnell@nodejs-github-bot@vsemozhetbyt@refack@Trott@lpinca@BridgeAR@trivikr@MylesBorins