GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — cluster: emit 'message' event on cluster master by sam-github · Pull Request #861 · nodejs/node

Conversation

@sam-github

@sam-github sam-github commented Feb 17, 2015

Copy link
Copy Markdown
Contributor

Four of the following five events that are emitted on workers are also emitted on the cluster master.

Which one is not?

  • 'disconnect'
  • 'exit'
  • 'listening'
  • 'message'
  • 'online'

The node API should not lend itself to trivia quiz questions.

Full disclosure: This change has been rejected before on the basis that the cluster module doesn't need more "sugar", but I'd like it to be reconsidered, not from a point of view of whether it needs more sugar (it doesn't), but from a point of view of whether its reasonable to have such inconsistent API choices.

/to @bnoordhuis

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
@Fishrock123

Fishrock123 commented Mar 13, 2015

Copy link
Copy Markdown
Contributor

ping @bnoordhuis

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@Fishrock123 Fishrock123 added the cluster Issues and PRs related to the cluster subsystem. label Mar 13, 2015
@tellnes

tellnes commented Mar 28, 2015

Copy link
Copy Markdown
Contributor

LGTM.

+1 to consistency.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

tellnes
tellnes reviewed Mar 28, 2015
View reviewed changes
Comment thread test/parallel/test-cluster-message.js Outdated

@tellnes tellnes Mar 28, 2015

Copy link
Copy Markdown
Contributor

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 seems unrelated

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
@chrisdickinson chrisdickinson added the land-on-master label Apr 17, 2015
evanlucas and others added 25 commits May 28, 2015 09:38
@evanlucas
child_process: expose ChildProcess constructor
a77c330
Creates two new internal modules (child_process and socket_list) for
better readability.

Exposes the ChildProcess constructor from the child_process module so
one can now `require(‘child_process’).ChildProcess`

Fixes: nodejs#1751
PR-URL: nodejs#1760
Reviewed-By: Chris Dickinson <[email protected]>
@bnoordhuis
Revert "core: set PROVIDER type as Persistent class id"
3a1bc06
This reverts commit 3c44100.

Reverted for breaking node-heapdump[0].

AsyncWrap assigns a class id but does not set a v8::RetainedObjectInfo
provider callback with v8::HeapProfiler::SetWrapperClassInfoProvider().
The result is a null pointer dereference when taking a heap snapshot.

It can probably be solved by setting a generic provider callback inside
the AsyncWrap constructor but that may have performance ramifications
that need to be investigated first.  I move to revert it for now.

[0] https://github.com/bnoordhuis/node-heapdump

PR-URL: nodejs#1827
Reviewed-By: Trevor Norris <[email protected]>
@bnoordhuis
test: add heap profiler add-on regression test
4e90c82
Add a regression test for nodejs#1827.

PR-URL: nodejs#1828
Reviewed-By: Trevor Norris <[email protected]>
@vkurchatkin
http: flush stored header
2c686fd
`flushHeaders` should work for header written
with `writeHead`.

PR-URL: nodejs#1695
Reviewed-By: Ben Noordhuis <[email protected]>
@jbergstroem
tools: pass constant to logger instead of string
8606793
On a few of our installations (namely CentOS), passing 'INFO'
resulted in a silent loglevel. Use a logging constant instead.

Fixes: nodejs/build#104
PR-URL: nodejs#1842
Reviewed-By: Rod Vagg <[email protected]>
@brendanashworth
src: remove old code
a65762c
The Socket writable only change was added and implemented in the
constructor around 5885f46, but this was never removed.

The libev counter issue is no longer prudent; the test remains in
test/sequential/test-regress-GH-1726.

PR-URL: nodejs#1819
Reviewed-By: Ben Noordhuis <[email protected]>
@othiym23
deps: upgrade npm to 2.11.0
c1afa53
PR-URL: nodejs#1829
Reviewed-By: Jeremiah Senkpiel <[email protected]>
@cjihrig @othiym23
deps: make node-gyp work with io.js
f9fd554
Every npm version bump requires a few patches to be floated on
node-gyp for io.js compatibility. These patches are found in
03d1992,
5de334c, and
da730c7. This commit squashes
them into a single commit.

PR-URL: nodejs#990
Reviewed-By: Ben Noordhuis <[email protected]>
@piscisaureus @othiym23
win,node-gyp: enable delay-load hook by default
53e98cc
The delay-load hook allows node.exe/iojs.exe to be renamed. See efadffe
for more background.

This commit is a combined squash of the following previous patches:
ba93c58,
3bda6cb,
0d6d3dd.

PR-URL: nodejs#1763
Reviewed-By: Jeremiah Senkpiel <[email protected]>
@ofrobots @Fishrock123
src: fix module search path for preload modules
5759722
When the preload module is not a abs/relative path, we should use
the standard search mechanism of looking into the node_modules folders
outwards. The current working directory is deemed to be the 'requiring
module', i.e. parent. The search path starts from cwd outwards.

Fixes: nodejs#1803
PR-URL: nodejs#1812
Reviewed-By: Colin Ihrig <[email protected]>
Reviewed-By: Jeremiah Senkpiel <[email protected]>
@Trott @bnoordhuis
test: check error type from net.Server.listen()
8059393
This change eliminates an unnecessary setTimeout() in the test.

PR-URL: nodejs#1821
Reviewed-By: Ben Noordhuis <[email protected]>
Reviewed-By: Brendan Ashworth <[email protected]>
@rvagg
2015-05-31 io.js v2.2.0 Release
0c57de5
PR-URL: nodejs#1808

Notable Changes:

* node: Speed-up require() by replacing usage of fs.statSync() and
  fs.readFileSync() with internal variants that are faster for this use-case
  and do not create as many objects for the garbage collector to clean up.
  The primary two benefits are: significant increase in application start-up
  time on typical applications and better start-up time for the debugger by
  eliminating almost all of the thousands of exception events.
  (Ben Noordhuis) nodejs#1801.
* node: Resolution of pre-load modules (-r or --require) now follows the
  standard require() rules rather than just resolving paths, so you can now
  pre-load modules in node_modules. (Ali Ijaz Sheikh) nodejs#1812.
* npm: Upgraded npm to v2.11.0. New hooks for preversion, version, and
  postversion lifecycle events, some SPDX-related license changes and license
  file inclusions. See the release notes for full details.
@rvagg
Working on v2.2.1
f2de5e5
@rvagg
doc: put SEMVER-MINOR on pre-load module fix 2.2.0
5d83401
@targos @silverwind
http: revert deprecation of client property
4d6b768
The improper deprecation of the property broke a feature in the
request module used by the bundled npm. This reverts the deprecation
part of this change.

PR-URL: nodejs#1852
Fixes: nodejs#1850
Reviewed-By: Jeremiah Senkpiel <[email protected]>
Reviewed-By: Ben Noordhuis <[email protected]>
Reviewed-By: Roman Reiss <[email protected]>
@jbergstroem
build: avoid passing empty strings to build flags
c5a1009
While checking the return values from icu-i18n, we didn't
validate the content before passing it to the build system.

Also make cflags parsing more robust by avoiding empty strings.

Fixes: nodejs#1787
PR-URL: nodejs#1789
Reviewed-By: Rod Vagg <[email protected]>
Reviewed-By: Ben Noordhuis <[email protected]>
@rvagg
2015-06-01 io.js v2.2.1 Release
fe84797
PR-URL: nodejs#1856

Notable Changes:

* http: reverts the removal of an undocumented `client` property on client
  connections, this property is being used in the wild, most notably by
  https://github.com/request/request which is used by npm.
  (Michaël Zasso) [nodejs#1852](nodejs#1852).
@rvagg
Working on v2.2.2
79bb5e1
@thefourtheye @silverwind
tools: Fix copying contents of deps/npm
1baba05
This fixes a platform inconsistency between BSD and GNU `cp` where
`deps/npm` would be copied into a subdirectory of `test-npm` on Linux,
but not on OS X.

PR-URL: nodejs#1853
Reviewed-By: Roman Reiss <[email protected]>
Reviewed-By: Johan Bergström <[email protected]>
@rvagg
doc: adjust changelog to clarify client revert
d29034b
PR-URL: nodejs#1859
Reviewed-By: Brendan Ashworth <[email protected]>
Reviewed-By: Michaël Zasso <[email protected]>
Reviewed-By: Sakthipriyan Vairamani <[email protected]>
@evanlucas
src: add getopt option parser
c0e7bf2
Options have been moved into the NodeOptions class.
A new global, node_options now exists and is used
to access the options after the command line arguments
have been parsed.

PR-URL: nodejs#1804
Reviewed-By: Ben Noordhuis <[email protected]>
@evanlucas
Revert "src: add getopt option parser"
5b6f575
This reverts commit c0e7bf2.

There are a few edge cases that can cause a crash
and need to be properly handled.

PR-URL: nodejs#1862
Reviewed-By: Ben Noordhuis <[email protected]>
@robertkowalski @Fishrock123
docs: delete unused/duplicate css files
1cb72c1
 - `sh.css` already exists in `api_assets`
 - `sh_vim-dark.css` is unused, but used in the repo `node-website`
        now

Reviewed-by: Trevor Norris <[email protected]>
Signed-off-by: Julien Gilli <[email protected]>

PORT-FROM: joyent/node @ 0c50195
PR-URL: nodejs#1770
Reviewed-By: Roman Reiss <[email protected]>
Reviewed-By: Jeremiah Senkpiel <[email protected]>
Tyler Anton @Fishrock123
docs: add return value for sync fs functions
a79dece
Clarify that synchronous functions in fs with no return value return
undefined.

Specify that fs.openSync() returns an integer and fs.existsSync()
returns true or false.

Fixes: nodejs/node-v0.x-archive#9313

PR: nodejs/node-v0.x-archive#9359
Reviewed-By: Julien Gilli <[email protected]>

PORT-FROM: joyent/node @ 51fe319
PR-URL: nodejs#1770
Reviewed-By: Roman Reiss <[email protected]>
Reviewed-By: Jeremiah Senkpiel <[email protected]>

Conflicts:
	doc/api/fs.markdown
@Trott @brendanashworth
test: remove unneeded comment task
8704c58
PR-URL: nodejs#1858
Reviewed-By: Colin Ihrig <[email protected]>
Fishrock123 and others added 3 commits July 17, 2015 16:23
@Fishrock123
2015-07-17 io.js v2.4.0 Release
a179bcb
Notable changes

* src: Added a new `--track-heap-objects` flag to track heap object
allocations for heap snapshots (Bradley Meck)
nodejs#2135.
* readline: Fixed a freeze that affected the repl if the keypress event
handler threw (Alex Kocharin) nodejs#2107.
* npm: Upgraded to v2.13.0, release notes can be found in
https://github.com/npm/npm/releases/tag/v2.13.0 (Forrest L Norvell)
nodejs#2152.

PR-URL: nodejs#2189
@Fishrock123
Working on v2.4.1
a764ac4
PR-URL: nodejs#2189
@thefourtheye @Trott
lib,test: add freelist deprecation and test
fef87fe
As per the dicussion in nodejs#569,
this patch issues a deprecation warning when freelist module is
required. A test file for freelist is also added.

PR-URL: nodejs#2176
Reviewed-By: Rich Trott <[email protected]>
Reviewed-By: Brendan Ashworth <[email protected]>
@sam-github
sam-github force-pushed the cluster-event-consistency branch from b1606d8 to d539f73 Compare July 18, 2015 04:09
thefourtheye and others added 2 commits July 18, 2015 04:10
@thefourtheye
doc: add thefourtheye as a collaborator
c019d9a
Refer: nodejs#2102

PR-URL: nodejs#2199
Reviewed-By: Jeremiah Senkpiel <[email protected]>
@targos
doc: add targos as a collaborator
6f306e0
Ref: nodejs#2102

PR-URL: nodejs#2200
Reviewed-By: Jeremiah Senkpiel <[email protected]>
@sam-github

sam-github commented Jul 18, 2015

Copy link
Copy Markdown
Contributor Author

Had to rebase onto master so I could run CI on this: https://jenkins-iojs.nodesource.com/job/iojs+any-pr+multi/166/

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@thefourtheye

thefourtheye commented Jul 19, 2015

Copy link
Copy Markdown
Contributor

@sam-github Are you sure that the rebasing is fine?

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

phillipj and others added 5 commits July 19, 2015 17:00
@phillipj @thefourtheye
doc: recompile before testing core module changes
c7d8b09
Changes to core modules do not take effect unless recompiled. Tip new
contributors about this when describing how to run tests in
contribution guide.

Removed `jslint` from first test command example, as jslint is included
when running `make test`.

Fixed wrong path of example stream2-transform test.

PR-URL: nodejs#2051
Reviewed-By: Ben Noordhuis <[email protected]>
Reviewed-By: Sakthipriyan Vairamani <[email protected]>
@rvagg
doc: add TSC meeting minutes 2015-07-15
6b85d5a
PR-URL: nodejs#2191
Reviewed-By: Colin Ihrig <[email protected]>
Reviewed-By: Michaël Zasso <[email protected]>
@thefourtheye
test: formatting skip messages for TAP parsing
69298d3
This patch makes the skip messages consistent so that the TAP plugin
in CI can parse the messages properly. The format will be

    1..0 # Skipped: [Actual reason why the test is skipped]

PR-URL: nodejs#2109
Reviewed-By: Ben Noordhuis <[email protected]>
Reviewed-By: Johan Bergström <[email protected]>
@thefourtheye
test: changing process.exit to return while skipping tests
79c865a
This patch uses `return` statement to skip the test instead of using
`process.exit` call.

PR-URL: nodejs#2109
Reviewed-By: Ben Noordhuis <[email protected]>
Reviewed-By: Johan Bergström <[email protected]>
@sam-github
cluster: emit 'message' event on cluster master
766b612
For consistency with the worker 'exit', 'online', 'disconnect', and
'listening' events which are emitted on worker and cluster, also emit
'message' on cluster.
@sam-github
sam-github force-pushed the cluster-event-consistency branch from d539f73 to 766b612 Compare July 20, 2015 18:12
@sam-github

sam-github commented Jul 20, 2015

Copy link
Copy Markdown
Contributor Author

@thefourtheye looks OK to me: master...sam-github:cluster-event-consistency

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@sam-github

sam-github commented Jul 20, 2015

Copy link
Copy Markdown
Contributor Author

Still looking at the test failures....

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@brendanashworth

brendanashworth commented Jul 23, 2015

Copy link
Copy Markdown
Contributor

CI is happy

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@thefourtheye

thefourtheye commented Jul 23, 2015

Copy link
Copy Markdown
Contributor

This PR has 7760 changed files :O

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@sam-github

sam-github commented Jul 23, 2015

Copy link
Copy Markdown
Contributor Author

OK, all the linux passed, except for one that is hung: https://jenkins-iojs.nodesource.com/job/iojs+pr+linux/169/

windows is green, except for the build that failed with a git error

os x passed

https://jenkins-iojs.nodesource.com/job/iojs+any-pr+multi/186/?auto_refresh=true

I'll land this on master.

@thefourtheye this PR is just io.js/master + 766b612, it looks bad in the PR because the PR is targeted at the 1.x branch, so it contains all of master since v1.x diverged. Unfortunately, github doesn't allow retargeting a PR at a new branch. I could've opened a new PR and closed this one, I suppose, though losing the conversation is annoying, too.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@sam-github sam-github added the semver-minor PRs that contain new features and should be released in the next minor version. label Jul 23, 2015
sam-github added a commit to sam-github/node that referenced this pull request Jul 23, 2015
@sam-github
cluster: emit 'message' event on cluster master
66fc8ca
For consistency with the worker 'exit', 'online', 'disconnect', and
'listening' events which are emitted on worker and cluster, also emit
'message' on cluster.

Reviewed-by: Sam Roberts <[email protected]>
Reviewed-by: Christian Tellnes <[email protected]>
Reviewed-by: Stephen Belanger <[email protected]>
PR-URL: nodejs#861
@sam-github

sam-github commented Jul 23, 2015

Copy link
Copy Markdown
Contributor Author

Landed in 66fc8ca

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@sam-github sam-github closed this Jul 23, 2015
@cjihrig cjihrig mentioned this pull request Jul 24, 2015
Release Proposal: v2.5.0 #2239
Merged
This was referenced Sep 15, 2021
[Snyk] Fix for 1 vulnerabilities solebox/node#25
Open
[Snyk] Fix for 1 vulnerabilities saeedahassan/node#35
Open
[Snyk] Fix for 1 vulnerabilities erdun/node#41
Open
[Snyk] Fix for 1 vulnerabilities enterstudio/node#24
Open
[Snyk] Fix for 1 vulnerabilities s4sc/node#24
Open
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

No reviews

Uh oh!

There was an error while loading. Please reload this page.

Assignees

No one assigned

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

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

Uh oh!

There was an error while loading. Please reload this page.

20 participants

@sam-github @Fishrock123 @tellnes @brendanashworth @Qard @thefourtheye @mscdex @silverwind @indutny @bnoordhuis @Olegas @jorangreef @rvagg @chrisdickinson @evanlucas @vkurchatkin @jbergstroem @othiym23 @cjihrig @piscisaureus
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.