velctor opened a new pull request #3276: URL: https://github.com/apache/iceberg/pull/3276
https://github.com/apache/iceberg/pull/90 adds a finalizer that closes open streams when they are garbage collected. But The `org.apache.iceberg.io.SeekableStream` object is discarded in the `ParquetIO#stream`,and `HadoopStream#finalizer()` is called, which causes the `FSDataOutputStream` to be closed early. This will result in deletefile reading fails with `Failed to open Parquet file ...` or `Stream closed`. In order to avoid this, add the member variable `icebergHadoopStream `to the `ParquetIO$ParquetInputFile` class and and use it as the parameter of the `ParquetIO#stream`. -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected] --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
