[GH-ISSUE #1854] Check return value from close #944

Open
opened 2026-03-04 01:50:07 +03:00 by kerem · 1 comment
Owner

Originally created by @gaul on GitHub (Jan 12, 2022).
Original GitHub issue: https://github.com/s3fs-fuse/s3fs-fuse/issues/1854

close(2) and fclose(3) can return errors in some exceptional situations but s3fs never checks this. There is not much we can do other than log and propagate, however.

Originally created by @gaul on GitHub (Jan 12, 2022). Original GitHub issue: https://github.com/s3fs-fuse/s3fs-fuse/issues/1854 `close(2)` and `fclose(3)` can return errors in some exceptional situations but s3fs never checks this. There is not much we can do other than log and propagate, however.
Author
Owner

@ggtakec commented on GitHub (Jan 22, 2022):

For a long time, even in a general program, the error from close() is difficult to handle.
The only thing we can do inside s3fs may be to log it, as you say.
Or s3fs retry again to close with limit the number of times
I think, even if we can handle this error, it will be difficult to deal with it.

<!-- gh-comment-id:1019129176 --> @ggtakec commented on GitHub (Jan 22, 2022): For a long time, even in a general program, the error from close() is difficult to handle. The only thing we can do inside s3fs may be to log it, as you say. Or s3fs retry again to close with limit the number of times I think, even if we can handle this error, it will be difficult to deal with it.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/s3fs-fuse#944
No description provided.