Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Attempt to close all delegate writers even when some fail #4750

Closed

Conversation

elimelec
Copy link
Contributor

Motivation:

When a delegate writer fails during close(), the original implementation would stop immediately, preventing other delegates from completing their cleanup.

For example: no footers written to all files because of an Exception from the first delegate, and the main content is already written at this point.

@fmbenhassine
Copy link
Contributor

LGTM 👍 Thank you for reporting and fixing the issue!

I planned this for the next patch release.

@fmbenhassine fmbenhassine changed the title Attempt to close all delegates even when some fail Attempt to close all delegate writers even when some fail Feb 20, 2025
fmbenhassine pushed a commit that referenced this pull request Feb 20, 2025
@fmbenhassine
Copy link
Contributor

Rebased and merged bd8f9a8. Thank you for your contribution!

I think the same issue can happen for delegates in the composite reader, so if you want to contribute the same fix then you are welcome. Otherwise please let me know and I will take care of it.

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.

2 participants