[GH-ISSUE #945] Make utility mode non-interactive #533

Closed
opened 2026-03-04 01:46:26 +03:00 by kerem · 2 comments
Owner

Originally created by @gaul on GitHub (Jan 31, 2019).
Original GitHub issue: https://github.com/s3fs-fuse/s3fs-fuse/issues/945

Utility mode allows listing and aborting incomplete MPU via user input:

$ s3fs mybucket -u
Lists the parts that have been uploaded for a specific multipart upload.

---------------------------------------------------------------
 Path     : /128gb
 UploadId : JzQEgxwURH8h9XU9Cpa9uNFpTFhjICW7e5cBW7RmmgW9v_1TlVGqlU2F27g6r21DW9Lw97JzsPxN.bsh.pwN3fmyQNnZlQ_u006LD5ds0uQ-
 Date     : 2019-01-31T04:25:44.000Z

---------------------------------------------------------------
Would you remove all objects? [Y/N]

This only allows interactive uses and thus cannot be part of our CI tests. Instead could s3fs break the operations into two, e.g., --list-incomplete-mpu and --abort-incomplete-mpu, perhaps with the latter taking a older-than-day parameter? Alternatively, s3fs could automatically abort incomplete MPU older than some number of days like goofys does.

Originally created by @gaul on GitHub (Jan 31, 2019). Original GitHub issue: https://github.com/s3fs-fuse/s3fs-fuse/issues/945 Utility mode allows listing and aborting incomplete MPU via user input: ``` $ s3fs mybucket -u Lists the parts that have been uploaded for a specific multipart upload. --------------------------------------------------------------- Path : /128gb UploadId : JzQEgxwURH8h9XU9Cpa9uNFpTFhjICW7e5cBW7RmmgW9v_1TlVGqlU2F27g6r21DW9Lw97JzsPxN.bsh.pwN3fmyQNnZlQ_u006LD5ds0uQ- Date : 2019-01-31T04:25:44.000Z --------------------------------------------------------------- Would you remove all objects? [Y/N] ``` This only allows interactive uses and thus cannot be part of our CI tests. Instead could s3fs break the operations into two, e.g., `--list-incomplete-mpu` and `--abort-incomplete-mpu`, perhaps with the latter taking a `older-than-day` parameter? Alternatively, s3fs could automatically abort incomplete MPU older than some number of days like goofys does.
kerem closed this issue 2026-03-04 01:46:27 +03:00
Author
Owner

@ggtakec commented on GitHub (Feb 3, 2019):

@gaul Thanks for your suggestion.

I think that adding "--list-incomplete-mpu" option is good.
About the "--abort-incomplete-mpu" option, I think this option should have parameters of "XX[YMDhm]" or "all" as its arguments.

The "-u" option can not be deleted because it is backward compatible.
But what about assigning "--incomplete-mpu" as an equivalent option?
Along with that, all option name prefix has "--incomplete-mpu", how about as follows?

--incomplete-mpu(-u)
--incomplete-mpu-list
--incomplete-mpu-abort ([1-9][0-9][Y|M|D|h|m] | all)

"YMDhm" is the year/month/day/hour, and "all" is all.

<!-- gh-comment-id:460025295 --> @ggtakec commented on GitHub (Feb 3, 2019): @gaul Thanks for your suggestion. I think that adding "--list-incomplete-mpu" option is good. About the "--abort-incomplete-mpu" option, I think this option should have parameters of "XX[YMDhm]" or "all" as its arguments. The "-u" option can not be deleted because it is backward compatible. But what about assigning "--incomplete-mpu" as an equivalent option? Along with that, all option name prefix has "--incomplete-mpu", how about as follows? ``` --incomplete-mpu(-u) --incomplete-mpu-list --incomplete-mpu-abort ([1-9][0-9][Y|M|D|h|m] | all) ``` _"YMDhm" is the year/month/day/hour, and "all" is all._
Author
Owner

@ggtakec commented on GitHub (Feb 11, 2019):

@gaul This issue is fixed by #951 , then this will be closed.
If you have more problem about this, please reopen.

<!-- gh-comment-id:462239791 --> @ggtakec commented on GitHub (Feb 11, 2019): @gaul This issue is fixed by #951 , then this will be closed. If you have more problem about this, please reopen.
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#533
No description provided.