Skip to content
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

AVRO-3171 JS: fix test failures on Node.js 16 #1354

Merged
merged 1 commit into from
Oct 13, 2021

Conversation

martin-g
Copy link
Member

@martin-g martin-g commented Oct 6, 2021

Add Node.js to the GitHub Actions workflow

Jira

Tests

Commits

  • My commits all reference Jira issues in their subject lines.

Add Node.js to the GitHub Actions workflow
@@ -1099,6 +1099,8 @@ MessageDecoder.prototype._flush = function () {
this.emit('error', new Error('trailing data'));
} else if (this._empty) {
this.emit('error', new Error('no message decoded'));
} else {
this.emit('finish');
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This fixes the issue with Node.js 16 but it is a mystery to me why finish event is not emitted automatically on the Transform stream after the reabable.end().

@martin-g
Copy link
Member Author

martin-g commented Oct 6, 2021

I've pinged Node.js devs about this issue: nodejs/node#39332 (comment)
Hopefully they will explain what is going wrong here.

@RyanSkraba
Copy link
Contributor

Thanks for the contribution!

@RyanSkraba RyanSkraba merged commit fb398e0 into apache:master Oct 13, 2021
RyanSkraba pushed a commit that referenced this pull request Oct 13, 2021
Add Node.js to the GitHub Actions workflow
@RyanSkraba
Copy link
Contributor

I've cherry-picked this into branch-1.11 so it should appear in the next 1.11.0 release candidate.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants