Skip to content

Conversation

@kou
Copy link
Member

@kou kou commented Jan 8, 2026

Rationale for this change

We can't remove a file if someone is still opening the file on Windows.

We use Tempfile for tests. It removes associated file when it's GC-ed. If we still open the associated file, the GC process reports the following warning:

warning: Exception in finalizer #<Tempfile::FinalizerManager:0x000001fb3c15ac00 @open_files={}, @path="D:/a/_temp/batch20260107-2120-ddy0e0.arrow", @pid=2120, @unlinked=false>

What changes are included in this PR?

Ensure removing temporary files.

Are these changes tested?

Yes.

Are there any user-facing changes?

Yes. Only for gparquet_arrow_file_reader_close().

@github-actions
Copy link

github-actions bot commented Jan 8, 2026

⚠️ GitHub issue #48776 has been automatically assigned in GitHub to PR creator.

@kou kou force-pushed the ci-ruby-windows-suppress-warnings branch from c961395 to c374570 Compare January 8, 2026 07:45
Copy link
Member Author

@kou kou left a comment

Choose a reason for hiding this comment

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

@kou kou merged commit 00a97fe into apache:main Jan 8, 2026
10 checks passed
@kou kou removed the awaiting committer review Awaiting committer review label Jan 8, 2026
@kou kou deleted the ci-ruby-windows-suppress-warnings branch January 8, 2026 09:17
@github-actions github-actions bot added the awaiting changes Awaiting changes label Jan 8, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant