Skip to content

Parquet: Close file reader in VectorizedParquetReader when model close throws - #17432

Open
vishnuprakaz wants to merge 1 commit into
apache:mainfrom
vishnuprakaz:parquet-vectorized-reader-close-leak
Open

Parquet: Close file reader in VectorizedParquetReader when model close throws#17432
vishnuprakaz wants to merge 1 commit into
apache:mainfrom
vishnuprakaz:parquet-vectorized-reader-close-leak

Conversation

@vishnuprakaz

Copy link
Copy Markdown
Contributor

VectorizedParquetReader.FileIterator.close() closed the model then the reader without a try/finally, so if model.close() threw, the underlying ParquetFileReader and its input stream leaked. This closes the reader with try-with-resources so it is always released, and adds a test for the case where the model fails to close.

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

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants