Skip to content

GH-55794: [GLib] Add filesystem finalization binding - #55804

Open
alytantawyy wants to merge 1 commit into
apache:mainfrom
alytantawyy:fix-glib-filesystem-finalization
Open

alytantawyy wants to merge 1 commit into
apache:mainfrom
alytantawyy:fix-glib-filesystem-finalization

Conversation

@alytantawyy

Copy link
Copy Markdown
Contributor

Rationale for this change

Expose the existing C++ filesystem finalization API to GLib and Ruby users. This is a prerequisite for splitting the S3 GLib bindings into a separate library in #51608.

Closes #55794.

What changes are included in this PR?

  • Add garrow_file_system_ensure_finalized() as a thin wrapper around arrow::fs::EnsureFinalized().
  • Expose the API through GObject Introspection as Arrow::FileSystem.ensure_finalized in Ruby.
  • Document shutdown usage and caller synchronization requirements.
  • Add a Ruby test verifying that filesystem creation fails after finalization. The test runs in a separate process so finalization does not affect the rest of the suite.

Are these changes tested?

Verified locally on macOS arm64:

  • C/GLib build and introspection generation passed.
  • The new regression test failed before adding the binding and passed afterward.
  • 85 Ruby filesystem tests passed; 12 optional Dataset tests were omitted because Arrow Dataset was unavailable.
  • All applicable pre-commit checks passed.

These are local results. GitHub CI results are reported separately in the PR checks.

Are there any user-facing changes?

Adds garrow_file_system_ensure_finalized() and its introspected Ruby API. Existing APIs and C++ cleanup logic are unchanged. Moving the S3 bindings into a separate library is outside this PR's scope.

Was AI used for this PR?

Codex generated the implementation, documentation, and Ruby test and helped draft this description.

I personally reviewed the implementation and test.

@alytantawyy

Copy link
Copy Markdown
Contributor Author

@kou please review whenever you get the chance

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.

[GLib] Add filesystem finalization binding

1 participant