lib: disallow file-backed blob cloning#47574
Closed
jasnell wants to merge 1 commit intonodejs:mainfrom
Closed
Conversation
Disallow cloning of file-backed Blobs. If necessary, we can enable this later but for now we disable it. The reason is because the underlying FdEntry ends up bound to the Environment/Realm under which is was created and transfering across worker threads ends up failing. Fixes: nodejs#47334
This comment was marked as outdated.
This comment was marked as outdated.
Hmm, it dose not really fix the issue, would just say that it is more "related" to it... it sure would be nice if they could be transfered too... what would it really take to solve this? Somehow making FdEntry transferable too? or |
Member
Author
|
It fixes the crash, which is the important bit. I would recommend opening an issue to track actually making file-backed blobs transferable. |
35 tasks
debadree25
approved these changes
Apr 18, 2023
Member
|
I think we could update it refs instead of fixes and make the original issue into a feature request then? |
This comment was marked as outdated.
This comment was marked as outdated.
aduh95
approved these changes
Apr 18, 2023
This comment was marked as outdated.
This comment was marked as outdated.
Collaborator
Member
Author
|
Landed in 595b2b3 |
jasnell
added a commit
that referenced
this pull request
Apr 22, 2023
Disallow cloning of file-backed Blobs. If necessary, we can enable this later but for now we disable it. The reason is because the underlying FdEntry ends up bound to the Environment/Realm under which is was created and transfering across worker threads ends up failing. Fixes: #47334 PR-URL: #47574 Reviewed-By: Debadree Chatterjee <debadree333@gmail.com> Reviewed-By: Antoine du Hamel <duhamelantoine1995@gmail.com>
39 tasks
targos
pushed a commit
that referenced
this pull request
May 2, 2023
Disallow cloning of file-backed Blobs. If necessary, we can enable this later but for now we disable it. The reason is because the underlying FdEntry ends up bound to the Environment/Realm under which is was created and transfering across worker threads ends up failing. Fixes: #47334 PR-URL: #47574 Reviewed-By: Debadree Chatterjee <debadree333@gmail.com> Reviewed-By: Antoine du Hamel <duhamelantoine1995@gmail.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Disallow cloning of file-backed Blobs. If necessary, we can enable this later but for now we disable it. The reason is because the underlying FdEntry ends up bound to the Environment/Realm under which is was created and transfering across worker threads ends up failing.
Fixes: #47334