forked from yugabyte/yugabyte-db
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[PLAT-11299]: Backup deletion improvements
Summary: Added the changes to have 3 retries before actually calling out a backup deletion failure. In the case of GCS backup deletion, we will now create batches of size 100 only, which does increase the backup deletion time, but it is mentioned as the best practice in Google Docs: https://cloud.google.com/storage/docs/batch ``` You should not include more than 100 calls in a single batch request. If you need to make more calls than that, use multiple batch requests. The total batch request payload must be less than 10MB. ``` On side note: I was able to verify that if we try to delete non-null zero blobs list, we get this below error, and fixed it by adding a check to return from func if blob size is zero. ``` java.lang.IllegalStateException: null at com.google.common.base.Preconditions.checkState(Preconditions.java:496) at com.google.api.client.util.Preconditions.checkState(Preconditions.java:79) at com.google.api.client.googleapis.batch.BatchRequest.execute(BatchRequest.java:231) at com.google.cloud.storage.spi.v1.HttpStorageRpc$DefaultRpcBatch.submit(HttpStorageRpc.java:205) at com.google.cloud.storage.StorageBatch.submit(StorageBatch.java:149) ``` Test Plan: Tested manually by - failing the backups deletion once to check that backup deletion failed state is updated only after 3 retries. - deleting empty backup and it passed. - deleting a backup of 10000 obect by creating more than 4000 tables. Reviewers: vpatibandla, vkumar, kkg, #yba-api-review! Reviewed By: vpatibandla Subscribers: yugaware Differential Revision: https://phorge.dev.yugabyte.com/D30425
- Loading branch information
Showing
8 changed files
with
171 additions
and
73 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
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.