-
Notifications
You must be signed in to change notification settings - Fork 3.1k
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
Conversation
plugin/trino-iceberg/src/main/java/io/trino/plugin/iceberg/HdfsInputFile.java
Outdated
Show resolved
Hide resolved
This removes the flakiness in Parquet writer by avoiding unwarranted closing of in-use input stream. For more details, see trinodb#5201
Unrelated #8477 |
// Hack: this wrapping is required to circumvent https://github.com/trinodb/trino/issues/5201 | ||
return new HdfsInputStream(environment.doAs(user, delegate::newStream)); |
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.
How does wrapping help alleviate #5201? what's the mechanics?
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.
@findepi does this help with mechanics? #5201 (comment)
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.
i.e. the "rewrapping" is not done. https://github.com/apache/iceberg/blob/master/parquet/src/main/java/org/apache/iceberg/parquet/ParquetIO.java#L93
The root cause was fixed in trinodb#8504.
The root cause was fixed in #8504.
Cherry-pick of trinodb/trino#8504 Co-authored-by: Pratham Desai <[email protected]>
Cherry-pick of trinodb/trino#8504 Co-authored-by: Pratham Desai <[email protected]>
The root cause was fixed in trinodb#8504.
#5201 (comment)