-
Notifications
You must be signed in to change notification settings - Fork 101
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Enhancement: Implement Chunk Deletion for Multi-part Uploaded Files o…
…n GCP and Openstack Cloud Providers (#673) * Added generic functionality to garbage collect the chunks when GC is triggered instead of waiting for the chunks to get deleted when the corresponding snapshot is garbage collected * Deleting chunks from GCS bucket immediately after the composite object is uploaded * Deleting chunks from OpenStack bucket immediately after the composite object is uploaded * Add logs for count of chunks getting deleted * Updated comments and code for readability * Fixed a bug in tests * Transfer the immediate chunk deletion logic to new function with context timeout * Timeout same as chunk upload timeout * Collected individual chunk deletion errors into a errList * Affected code: Gcs & Swift snapstore chunk deletion * Add logs after successfully performing chunk deletion * Fix snapstore tests, update comments * Parallelize chunk deletion * For better performance * To prevent blocking the snapshotter while chunk deletion for older snapshot is underway * Add comment * Add mutex to prevent DATA RACE in ObjectMap of mock GCS & Swift clients while deleting chunks in parallel * Minor fixes * Add mutex to prevent parallel read & write for GCS Mock client * Improved error collection in chunk deletion * Remove immediate chunk deletion, address edge case in Garbage Collection * Address review comments * Minor fixes
- Loading branch information
1 parent
5a75019
commit de13fc2
Showing
4 changed files
with
54 additions
and
23 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
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
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
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