Backpressure not draining when streaming to S3 with node #4411
Unanswered
LachlanNewman
asked this question in
Q&A
Replies: 1 comment
-
I just fought against this for the last few hours and didn't want to leave anyone else who hits this stranded. Turns out, you need to issue an
Then, after |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I am using the aws-sdk-js-v3 library to stream multiple data sets to the same object in s3 using the same stream.
For some reason, though the main function doesn't await for the stream to be drained once it hits the hightwatermark and the application exits with an exit code of 0.
Output
How can I get the application to wait for the stream to be drained and why is it not waiting for the promise to be resolved and why is it exiting before writing the next dataset?
Beta Was this translation helpful? Give feedback.
All reactions