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

Wrap stream from HadoopInputFile to work around #5201 #8504

Merged
merged 1 commit into from
Jul 14, 2021

Conversation

phd3
Copy link
Member

@phd3 phd3 commented Jul 8, 2021

@cla-bot cla-bot bot added the cla-signed label Jul 8, 2021
@phd3 phd3 requested a review from electrum July 12, 2021 14:48
This removes the flakiness in Parquet writer by avoiding
unwarranted closing of in-use input stream. For more details,
see trinodb#5201
@phd3 phd3 changed the title Test workaround for #5201 Wrap HadoopInputFile to work around #5201 Jul 14, 2021
@phd3 phd3 changed the title Wrap HadoopInputFile to work around #5201 Wrap stream from HadoopInputFile to work around #5201 Jul 14, 2021
@phd3
Copy link
Member Author

phd3 commented Jul 14, 2021

Unrelated #8477

@phd3 phd3 merged commit a244d3d into trinodb:master Jul 14, 2021
Comment on lines +60 to +61
// Hack: this wrapping is required to circumvent https://github.com/trinodb/trino/issues/5201
return new HdfsInputStream(environment.doAs(user, delegate::newStream));
Copy link
Member

Choose a reason for hiding this comment

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

How does wrapping help alleviate #5201? what's the mechanics?

Copy link
Member Author

Choose a reason for hiding this comment

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

@findepi does this help with mechanics? #5201 (comment)

Copy link
Member Author

Choose a reason for hiding this comment

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

phd3 added a commit to phd3/trino that referenced this pull request Jul 27, 2021
@phd3 phd3 deleted the issue5201 branch July 27, 2021 22:18
findepi pushed a commit that referenced this pull request Jul 29, 2021
@phd3 phd3 added this to the 360 milestone Aug 23, 2021
liupan664021 added a commit to liupan664021/presto that referenced this pull request Nov 10, 2021
beinan pushed a commit to prestodb/presto that referenced this pull request Nov 18, 2021
sumannewton pushed a commit to sumannewton/trino that referenced this pull request Jan 17, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Development

Successfully merging this pull request may close these issues.

3 participants