GoogleCloudPlatform / GoogleCloudPlatform/gsutil

gsutil mv sometimes exits with error status when operation was successful.

Open
#542 3 comments 0 reactions 0 assignees View on GitHub
Dominant language
Python
Stars
918
Forks
335
PR merge metrics
No merged PRs in 30d

Description

In the last month or so with about 86k uploads we've had 2 scenarios where a mv of a single small file to a bucket was successful but exited non-zero. 2 out of 86k isn't horrible but the only way to avoid this issue is to hack something together that looks to see if the file really exists after a non-zero exit. Since these operations cost money its a bug that needs to be resolved.

Contributor guide

Open the contributing guide

Research direction

Start with the gsutil mv command described in the report and reproduce a single small-file move while checking both the bucket result and process exit status. The issue names no source file or test; done means a successful move consistently exits with status zero, including under the reported conditions.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
cli, cloud
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.