-
Notifications
You must be signed in to change notification settings - Fork 29.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
end is called twice when using pipeline
#42866
Comments
@nodejs/streams |
It's unnecessary that pipeline calls it twice but I wouldn't consider it a bug. Calling end the second time should be a noop. |
It's probably easier to just implement |
|
This issue is extracted from I already send this issue to their issue tracket. And ask them about the reason behind and will they accept change to use |
Making sure pipeline only calls end once would be a nice to have fix. |
Hello @ronag any pointers on where the end function is called during the pipeline function, have been trying to find a way to solve this issue |
Fixes: #42866 PR-URL: #46226 Reviewed-By: Luigi Pinca <[email protected]> Reviewed-By: Robert Nagy <[email protected]> Reviewed-By: Matteo Collina <[email protected]> Reviewed-By: James M Snell <[email protected]> Reviewed-By: Minwoo Jung <[email protected]>
Fixes: #42866 PR-URL: #46226 Reviewed-By: Luigi Pinca <[email protected]> Reviewed-By: Robert Nagy <[email protected]> Reviewed-By: Matteo Collina <[email protected]> Reviewed-By: James M Snell <[email protected]> Reviewed-By: Minwoo Jung <[email protected]>
Fixes: #42866 PR-URL: #46226 Reviewed-By: Luigi Pinca <[email protected]> Reviewed-By: Robert Nagy <[email protected]> Reviewed-By: Matteo Collina <[email protected]> Reviewed-By: James M Snell <[email protected]> Reviewed-By: Minwoo Jung <[email protected]>
Fixes: #42866 PR-URL: #46226 Reviewed-By: Luigi Pinca <[email protected]> Reviewed-By: Robert Nagy <[email protected]> Reviewed-By: Matteo Collina <[email protected]> Reviewed-By: James M Snell <[email protected]> Reviewed-By: Minwoo Jung <[email protected]>
Version
>= 17.3.0
Platform
Ubuntu 20.04
Subsystem
stream
What steps will reproduce the bug?
This behavior started since
17.3.0
and it can also be reproduce on18.0.0
How often does it reproduce? Is there a required condition?
Always.
What is the expected behavior?
.end
should not call twice and behave similar topipe
.What do you see instead?
.end
being called twice when usingpipeline
.Additional information
It is currently affecting
mongodb
usage innode@18
. I assume it is bug from core but not their side.If it is the expected behavior, I will try to fix it on
mongodb
side.The text was updated successfully, but these errors were encountered: