Soft deleted directory isn't being calculated while calculating capacity #35646
Labels
Client
This issue points to a problem in the data-plane of the library.
customer-reported
Issues that are reported by GitHub users external to the Azure organization.
needs-team-attention
This issue needs attention from Azure service team or SDK team
question
The issue doesn't require a change to the product in order to be resolved. Most issues start as that
Service Attention
This issue is responsible by Azure service team.
Storage
Storage Service (Queues, Blobs, Files)
Describe the bug
When trying to calaculate container capacity for an ADLS Gen2 account, its not calculating the soft-deleted directory capacity.
For example, if you saved 100G under sa/container/folder1/folder2/100Gfile.txt
then you delete this 100Gfile.txt
SDK with include=deleted will be able to calculate the deleted size
but if you have folder2 deleted instead, then SDK, blob inventory (and Azure Storage Explorer) will not be able to tell the deleted 100G size.
To Reproduce
Steps to reproduce the behavior:
def dir_scan_deleted(writer, client) -> int:
"""
Recursively scan a ADLS
Expected behavior
I have expected this to include the deleted blobs inside the deleted directory but it doesn't seem to include those. But, if I delete the individual blob, my code is calculating that correctly.
Screenshots
None
Additional context
Azure blob inventory, Azure storage explorer also exhibiting the same behavior. This is documented here for Blob Inventory https://learn.microsoft.com/en-us/azure/storage/blobs/blob-inventory#reports-might-exclude-soft-deleted-blobs-in-accounts-that-have-a-hierarchical-namespace
The text was updated successfully, but these errors were encountered: