Skip to content

Undelete blob

Alok Joshi requested to merge undelete_blob into master

Adding undelete operation support in the library to enable restoring soft-deleted blobs

We have seen a few records that end up in an inconsistent state where the latest version from CosmosDb for a record is soft-deleted from Blob storage. This will fail apis like GET /api/storage/v2/records/<id> and POST /api/storage/v2/query/records:batch. Restoring the soft delete version from Blob Storage (which is available in CosmosDb metadata for the record) will fix the inconsistency.

Reference docs:

https://docs.microsoft.com/en-us/azure/storage/blobs/soft-delete-blob-manage?tabs=dotnet#restore-soft-deleted-blobs-when-versioning-is-enabled

https://github.com/Azure/azure-sdk-for-java/issues/25943

There will be a follow up change in Storage service

Edited by Alok Joshi

Merge request reports