-
Notifications
You must be signed in to change notification settings - Fork 284
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
headObject
call adds overhead, especially when downloading or copying a large number of small files. - Unnecessary Costs: Since
headObject
calls 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
cp
command with the progress bar disabled (default). - Observe network traffic logs (
--log=trace
) to confirm that aheadObject
call is still being made.
Impact:
- Performance: Slower operations due to unnecessary API calls.
- Cost: Increased billing for
headObject
requests, especially in bulk operations.
Metadata
Metadata
Assignees
Labels
No labels