-
Notifications
You must be signed in to change notification settings - Fork 308
Open
Description
Description:
When using the cp command to copy or download objects, the progress bar logic is making an unnecessary headObject call (via client.stat) to retrieve the size of the object, even when the progress bar is explicitly disabled. This results in:
- Increased Latency: Each unnecessary
headObjectcall adds overhead, especially when downloading or copying a large number of small files. - Unnecessary Costs: Since
headObjectcalls are billed requests, this behavior incurs additional costs for users, particularly in use cases involving bulk operations.
Expected Behavior:
If the progress bar is disabled (default), the cp command should skip the headObject call entirely, as the object size is not needed for progress tracking.
Steps to Reproduce:
- Run a
cpcommand with the progress bar disabled (default). - Observe network traffic logs (
--log=trace) to confirm that aheadObjectcall is still being made.
Impact:
- Performance: Slower operations due to unnecessary API calls.
- Cost: Increased billing for
headObjectrequests, especially in bulk operations.
Metadata
Metadata
Assignees
Labels
No labels