-
Notifications
You must be signed in to change notification settings - Fork 108
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Gracefully handle duplicate name with unique MD5 (#3355)
* Gracefully handle duplicate name with unique MD5 PBENCH-1112 In testing we're seeing duplicate tarball names with distinct MD5 values. We have reduced the importance of duplicate tarball names, relying on the dataset resource ID (MD5) for "uniqueness" internally. However the cache manager still maintains tarball files and MD5 companions on disk, and the upload API has to temporarily store the API payload somewhere. When the duplicate tarballs are uploaded concurrently, the `.open()` fails, leading to an internal server error. We want to minimize the chance of reporting internal server errors where possible. Instead, move temporarily upload files into an MD5-based subdirectory, and clean up that directory after upload completes.
- Loading branch information
Showing
2 changed files
with
137 additions
and
103 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.