-
Notifications
You must be signed in to change notification settings - Fork 59
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
fix: remove the watermarks #1313
fix: remove the watermarks #1313
Conversation
Removing the watermarks allows data not to be stuck at the last transform so that data doesn’t get stuck due to the watermarks.
@@ -252,6 +252,7 @@ describe('Bigtable/ReadRows', () => { | |||
// Transform stream | |||
const transform = new Transform({ | |||
objectMode: true, | |||
writableHighWaterMark: 0, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
why is writableHighWaterMark
only set in the test and not in the implementation (in src/table.ts
) similar to readableHighWaterMark
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Prior to this PR, data gets trapped between this transform and the readStream transform and when the user cancels the stream the data is released resulting in extra rows. Removing the two watermarks prevents the data from getting trapped which means when the user cancels the streams no extra trapped data gets through so the right number of rows reaches the user.
Removing the watermarks allows data not to be stuck at the last transform so that data doesn’t get stuck due to the watermarks.
Fixes #1286