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 — diagnostics_channel: handle last subscriber removal by gabrielschulhof · Pull Request #48933 · nodejs/node

Conversation

@gabrielschulhof

@gabrielschulhof gabrielschulhof commented Jul 26, 2023

Copy link
Copy Markdown
Contributor

When iterating over diagnostics channel subscribers, assume their count is zero if the list of subscribers becomes undefined, because there may be only one subscriber which may unsubscribe itself as part of its onMessage handler.

Sorry, something went wrong.

Uh oh!

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

bricss reacted with thumbs up emoji
All reactions
  • 👍 1 reaction
@gabrielschulhof gabrielschulhof added the diagnostics_channel Issues and PRs related to the diagnostics_channel module. label Jul 26, 2023
@nodejs-github-bot nodejs-github-bot added the needs-ci PRs that need a full CI run. label Jul 26, 2023
@gabrielschulhof
gabrielschulhof force-pushed the fix-diagnostics-channel-sync-unsubscribe branch from f1ec8b4 to 7d6b3f2 Compare July 26, 2023 22:50
@gabrielschulhof
gabrielschulhof requested a review from Qard July 26, 2023 23:50
Qard
Qard approved these changes Jul 27, 2023
View reviewed changes
lpinca
lpinca approved these changes Jul 27, 2023
View reviewed changes
@lpinca lpinca added the request-ci Add this label to start a Jenkins CI on a PR. Only starts once the PR has an approving review. label Jul 27, 2023
@github-actions github-actions Bot removed the request-ci Add this label to start a Jenkins CI on a PR. Only starts once the PR has an approving review. label Jul 27, 2023
@nodejs-github-bot

nodejs-github-bot commented Jul 28, 2023

Copy link
Copy Markdown
Collaborator

CI: https://ci.nodejs.org/job/node-test-pull-request/52962/

All reactions

Sorry, something went wrong.

Uh oh!

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

theanarkh
theanarkh approved these changes Jul 28, 2023
View reviewed changes
@nodejs-github-bot

nodejs-github-bot commented Jul 28, 2023

Copy link
Copy Markdown
Collaborator

CI: https://ci.nodejs.org/job/node-test-pull-request/52966/

All reactions

Sorry, something went wrong.

Uh oh!

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

@gabrielschulhof
diagnostics_channel: handle last subscriber removal
c1aa103
When iterating over diagnostics channel subscribers, assume their count
is zero if the list of subscribers becomes undefined, because there may
be only one subscriber which may unsubscribe itself as part of its
onMessage handler.
@gabrielschulhof
gabrielschulhof force-pushed the fix-diagnostics-channel-sync-unsubscribe branch from 7d6b3f2 to c1aa103 Compare July 28, 2023 21:57
@nodejs-github-bot

nodejs-github-bot commented Jul 28, 2023

Copy link
Copy Markdown
Collaborator

CI: https://ci.nodejs.org/job/node-test-pull-request/52969/

All reactions

Sorry, something went wrong.

Uh oh!

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

This was referenced Jul 29, 2023
CI Reliability 2023-07-29 nodejs/reliability#627
Open
CI Reliability 2023-07-30 nodejs/reliability#628
Open
CI Reliability 2023-07-31 nodejs/reliability#629
Open
legendecas
legendecas approved these changes Jul 31, 2023
View reviewed changes
@nodejs-github-bot

nodejs-github-bot commented Jul 31, 2023

Copy link
Copy Markdown
Collaborator

CI: https://ci.nodejs.org/job/node-test-pull-request/53004/

All reactions

Sorry, something went wrong.

Uh oh!

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

@debadree25 debadree25 added the author ready PRs with CI started, the required approvals, and no outstanding review comments. label Jul 31, 2023
gabrielschulhof added a commit that referenced this pull request Jul 31, 2023
@gabrielschulhof
diagnostics_channel: fix last subscriber removal
eb504c9
When iterating over diagnostics channel subscribers, assume their count
is zero if the list of subscribers becomes undefined, because there may
be only one subscriber which may unsubscribe itself as part of its
onMessage handler.

Signed-off-by: Gabriel Schulhof <[email protected]>
PR-URL: #48933
Reviewed-By: Stephen Belanger <[email protected]>
Reviewed-By: Luigi Pinca <[email protected]>
Reviewed-By: Chengzhong Wu <[email protected]>
Reviewed-By: theanarkh <[email protected]>
@gabrielschulhof

gabrielschulhof commented Jul 31, 2023

Copy link
Copy Markdown
Contributor Author

Landed in eb504c9.

Qard reacted with heart emoji
All reactions
  • ❤️ 1 reaction

Sorry, something went wrong.

Uh oh!

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

@gabrielschulhof gabrielschulhof closed this Jul 31, 2023
@gabrielschulhof
gabrielschulhof deleted the fix-diagnostics-channel-sync-unsubscribe branch July 31, 2023 17:16
@gabrielschulhof gabrielschulhof removed the needs-ci PRs that need a full CI run. label Jul 31, 2023
This was referenced Aug 1, 2023
CI Reliability 2023-08-01 nodejs/reliability#630
Open
CI Reliability 2023-08-02 nodejs/reliability#631
Open
CI Reliability 2023-08-03 nodejs/reliability#632
Open
@gabrielschulhof

gabrielschulhof commented Aug 13, 2023

Copy link
Copy Markdown
Contributor Author

@RafaelGSS, will this go into 20.6.0?

All reactions

Sorry, something went wrong.

Uh oh!

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

@gabrielschulhof gabrielschulhof mentioned this pull request Aug 14, 2023
Release plan - v20.x Maintenance LTS nodejs/Release#855
Closed
Ceres6 pushed a commit to Ceres6/node that referenced this pull request Aug 14, 2023
@gabrielschulhof @Ceres6
diagnostics_channel: fix last subscriber removal
6568ac8
When iterating over diagnostics channel subscribers, assume their count
is zero if the list of subscribers becomes undefined, because there may
be only one subscriber which may unsubscribe itself as part of its
onMessage handler.

Signed-off-by: Gabriel Schulhof <[email protected]>
PR-URL: nodejs#48933
Reviewed-By: Stephen Belanger <[email protected]>
Reviewed-By: Luigi Pinca <[email protected]>
Reviewed-By: Chengzhong Wu <[email protected]>
Reviewed-By: theanarkh <[email protected]>
Ceres6 pushed a commit to Ceres6/node that referenced this pull request Aug 14, 2023
@gabrielschulhof @Ceres6
diagnostics_channel: fix last subscriber removal
ad5996e
When iterating over diagnostics channel subscribers, assume their count
is zero if the list of subscribers becomes undefined, because there may
be only one subscriber which may unsubscribe itself as part of its
onMessage handler.

Signed-off-by: Gabriel Schulhof <[email protected]>
PR-URL: nodejs#48933
Reviewed-By: Stephen Belanger <[email protected]>
Reviewed-By: Luigi Pinca <[email protected]>
Reviewed-By: Chengzhong Wu <[email protected]>
Reviewed-By: theanarkh <[email protected]>
UlisesGascon pushed a commit to UlisesGascon/node that referenced this pull request Aug 14, 2023
@gabrielschulhof @UlisesGascon
diagnostics_channel: fix last subscriber removal
d46e2b4
When iterating over diagnostics channel subscribers, assume their count
is zero if the list of subscribers becomes undefined, because there may
be only one subscriber which may unsubscribe itself as part of its
onMessage handler.

Signed-off-by: Gabriel Schulhof <[email protected]>
PR-URL: nodejs#48933
Reviewed-By: Stephen Belanger <[email protected]>
Reviewed-By: Luigi Pinca <[email protected]>
Reviewed-By: Chengzhong Wu <[email protected]>
Reviewed-By: theanarkh <[email protected]>
RafaelGSS pushed a commit that referenced this pull request Aug 15, 2023
@gabrielschulhof @RafaelGSS
diagnostics_channel: fix last subscriber removal
fca6761
When iterating over diagnostics channel subscribers, assume their count
is zero if the list of subscribers becomes undefined, because there may
be only one subscriber which may unsubscribe itself as part of its
onMessage handler.

Signed-off-by: Gabriel Schulhof <[email protected]>
PR-URL: #48933
Reviewed-By: Stephen Belanger <[email protected]>
Reviewed-By: Luigi Pinca <[email protected]>
Reviewed-By: Chengzhong Wu <[email protected]>
Reviewed-By: theanarkh <[email protected]>
@UlisesGascon UlisesGascon mentioned this pull request Aug 15, 2023
v20.6.0 proposal #49185
Merged
RafaelGSS pushed a commit to RafaelGSS/node that referenced this pull request Aug 15, 2023
@gabrielschulhof @RafaelGSS
diagnostics_channel: fix last subscriber removal
d128ca1
When iterating over diagnostics channel subscribers, assume their count
is zero if the list of subscribers becomes undefined, because there may
be only one subscriber which may unsubscribe itself as part of its
onMessage handler.

Signed-off-by: Gabriel Schulhof <[email protected]>
PR-URL: nodejs#48933
Reviewed-By: Stephen Belanger <[email protected]>
Reviewed-By: Luigi Pinca <[email protected]>
Reviewed-By: Chengzhong Wu <[email protected]>
Reviewed-By: theanarkh <[email protected]>
RafaelGSS pushed a commit that referenced this pull request Aug 17, 2023
@gabrielschulhof @RafaelGSS
diagnostics_channel: fix last subscriber removal
114e088
When iterating over diagnostics channel subscribers, assume their count
is zero if the list of subscribers becomes undefined, because there may
be only one subscriber which may unsubscribe itself as part of its
onMessage handler.

Signed-off-by: Gabriel Schulhof <[email protected]>
PR-URL: #48933
Reviewed-By: Stephen Belanger <[email protected]>
Reviewed-By: Luigi Pinca <[email protected]>
Reviewed-By: Chengzhong Wu <[email protected]>
Reviewed-By: theanarkh <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

@Qard Qard Qard approved these changes
@lpinca lpinca lpinca approved these changes
@legendecas legendecas legendecas approved these changes
@theanarkh theanarkh theanarkh approved these changes

Uh oh!

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

Assignees

No one assigned

Labels

author ready PRs with CI started, the required approvals, and no outstanding review comments. diagnostics_channel Issues and PRs related to the diagnostics_channel module.

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.

7 participants

@gabrielschulhof @nodejs-github-bot @Qard @lpinca @legendecas @theanarkh @debadree25
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 01402503 — 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.