kou opened a new pull request, #55716: URL: https://github.com/apache/arrow/pull/55716
### Rationale for this change `ParquetFileReader::Close()` doesn't release pre-buffered data. Pre-buffering is enabled by default. If the source is a memory mapped file, the pre-buffered data refers to the mapped memory. So the file is still mapped after we close the reader and the source. We can't remove a mapped file on Windows. ### What changes are included in this PR? Release pre-buffered data in `SerializedFile::Close()`. ### Are these changes tested? Yes. ### Are there any user-facing changes? Yes. ### Was AI used for this PR? In accordance to the [AI generation guidelines](https://arrow.apache.org/docs/dev/developers/overview.html#ai-generated-code), please disclose below whether and how AI was used in this PR. **PR code and description written by:** - [x] Human - [x] AI **Reviewed before submission by:** - [x] Human - [x] AI - [ ] Not reviewed * GitHub Issue: (filled in automatically from the PR title) -- 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]
