Skip to content

Conversation

@Flarna
Copy link
Member

Wrap reused read_wrap in a unique async resource to ensure that executionAsyncResource() is not ambiguous.

Refs: #30959

Checklist
  • make -j4 test (UNIX), or vcbuild test (Windows) passes
  • tests and/or benchmarks are included
  • commit message follows commit guidelines

@nodejs-github-botnodejs-github-bot added c++ Issues and PRs that require attention from people who are familiar with C++. fs Issues and PRs related to the fs subsystem / file system. labels Feb 26, 2020
Qard
Qard approved these changes Mar 2, 2020
@BridgeARBridgeAR added the author ready PRs that have at least one approval, no pending requests for changes, and a CI started. label Mar 9, 2020
@nodejs-github-bot
Copy link
Collaborator

@Flarna
Copy link
MemberAuthor

Seems like something committed since my last commit caused the test to fail. will take a look...

@FlarnaFlarna changed the title async_hooks: avoid resource reuse by FileHandleWIP: async_hooks: avoid resource reuse by FileHandleMar 9, 2020
@Flarna
Copy link
MemberAuthor

Seems the commit causing the test fails (missing destroy) is from #31869 (fyi @addaleax). Will further look into this tomorrow.

Wrap reused read_wrap in a unique async resource to ensure that executionAsyncResource() is not ambiguous.
@FlarnaFlarnaforce-pushed the async-hooks-streampipe-reuse branch from eaf051f to 6e677daCompareMarch 10, 2020 07:43
@Flarna
Copy link
MemberAuthor

Rebased and change to a larger fixture. Seems #31869 caused that less fileIO operations are done (2 instead 3). Using a larger fixture ensures that enough file io is done for the testcase.

@FlarnaFlarna changed the title WIP: async_hooks: avoid resource reuse by FileHandleasync_hooks: avoid resource reuse by FileHandleMar 10, 2020
@FlarnaFlarna requested a review from addaleaxMarch 10, 2020 12:09
@nodejs-github-bot
Copy link
Collaborator

@addaleax
Copy link
Member

Landed in c145b29

addaleax pushed a commit that referenced this pull request Mar 11, 2020
Wrap reused read_wrap in a unique async resource to ensure that executionAsyncResource() is not ambiguous. PR-URL: #31972 Refs: #30959 Reviewed-By: Anna Henningsen <[email protected]> Reviewed-By: David Carlier <[email protected]> Reviewed-By: James M Snell <[email protected]> Reviewed-By: Stephen Belanger <[email protected]>
@FlarnaFlarna deleted the async-hooks-streampipe-reuse branch March 11, 2020 18:33
MylesBorins pushed a commit that referenced this pull request Mar 11, 2020
Wrap reused read_wrap in a unique async resource to ensure that executionAsyncResource() is not ambiguous. PR-URL: #31972 Refs: #30959 Reviewed-By: Anna Henningsen <[email protected]> Reviewed-By: David Carlier <[email protected]> Reviewed-By: James M Snell <[email protected]> Reviewed-By: Stephen Belanger <[email protected]>
@MylesBorinsMylesBorins mentioned this pull request Mar 12, 2020
cjihrig added a commit to cjihrig/node that referenced this pull request Mar 15, 2020
../src/node_file.cc:386:7: warning: ignoring return value of function declared with 'warn_unused_result' attribute [-Wunused-result] PR-URL: nodejs#32241 Refs: nodejs#31972 Reviewed-By: Sam Roberts <[email protected]> Reviewed-By: David Carlier <[email protected]> Reviewed-By: Anna Henningsen <[email protected]> Reviewed-By: James M Snell <[email protected]>
BridgeAR pushed a commit that referenced this pull request Mar 17, 2020
../src/node_file.cc:386:7: warning: ignoring return value of function declared with 'warn_unused_result' attribute [-Wunused-result] PR-URL: #32241 Refs: #31972 Reviewed-By: Sam Roberts <[email protected]> Reviewed-By: David Carlier <[email protected]> Reviewed-By: Anna Henningsen <[email protected]> Reviewed-By: James M Snell <[email protected]>
MylesBorins pushed a commit that referenced this pull request Mar 24, 2020
../src/node_file.cc:386:7: warning: ignoring return value of function declared with 'warn_unused_result' attribute [-Wunused-result] PR-URL: #32241 Refs: #31972 Reviewed-By: Sam Roberts <[email protected]> Reviewed-By: David Carlier <[email protected]> Reviewed-By: Anna Henningsen <[email protected]> Reviewed-By: James M Snell <[email protected]>
targos pushed a commit that referenced this pull request Apr 22, 2020
Wrap reused read_wrap in a unique async resource to ensure that executionAsyncResource() is not ambiguous. PR-URL: #31972 Refs: #30959 Reviewed-By: Anna Henningsen <[email protected]> Reviewed-By: David Carlier <[email protected]> Reviewed-By: James M Snell <[email protected]> Reviewed-By: Stephen Belanger <[email protected]>
targos pushed a commit that referenced this pull request Apr 22, 2020
../src/node_file.cc:386:7: warning: ignoring return value of function declared with 'warn_unused_result' attribute [-Wunused-result] PR-URL: #32241 Refs: #31972 Reviewed-By: Sam Roberts <[email protected]> Reviewed-By: David Carlier <[email protected]> Reviewed-By: Anna Henningsen <[email protected]> Reviewed-By: James M Snell <[email protected]>
@targostargos mentioned this pull request Apr 22, 2020
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.c++Issues and PRs that require attention from people who are familiar with C++.fsIssues and PRs related to the fs subsystem / file system.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

8 participants

@Flarna@nodejs-github-bot@addaleax@Qard@jasnell@devnexen@BridgeAR@puzpuzpuz