-
Notifications
You must be signed in to change notification settings - Fork 11
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
got 'finish' event before all pending jobs done #7
Comments
You're right that it should definitely wait until all transforms are complete before firing 'finish'. I'm trying to figure out a nice way of fixing this at the moment. If you had a test case showing the failure that'd be really helpful, even more so if it was in the form of a failing unit test :) |
I also encountered such a problem. Here are small tests for dimontration: |
Thanks for this! |
@jacobbubu Maybe it is triggered by duplicated invoking of |
This is a really annoying bug, it swallow us a whole afternoon to figure out why some chunk are missing. Hope it can be fixed asap.. |
How about trying this package?
https://www.npmjs.com/package/oct <https://www.npmjs.com/package/oct>
youngoat@163.com
… On 22 Dec 2017, at 6:08 PM, Duan Shiqiang ***@***.***> wrote:
This is a really annoying bug, it swallow us a whole afternoon to figure out why some chunk are missing. Hope it can be fixed asap..
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub <#7 (comment)>, or mute the thread <https://github.com/notifications/unsubscribe-auth/AH4XcbfnHQHK7BfIgSwycYHWwqq-dgVXks5tC3-ZgaJpZM4EE19p>.
|
I tried this because I had the same issue using alternative package |
@almost This is due to using An example fix is here mafintosh/parallel-transform#6, but that depends on Fixing this without |
Use final instead of flush when available, fixes #7
Thanks to @Tapppi for fixing this! Now published to npm as version 2.0.0 (bumped the major version because this changes semantics) |
When use it to implement a writeable stream, the 'finish' event fired before all of the pending jobs done.
The text was updated successfully, but these errors were encountered: