-
Notifications
You must be signed in to change notification settings - Fork 3.3k
[azure-storage-file-datalake] Checking for a non-existent file induces memory leak #45999
Copy link
Copy link
Open
Labels
Service AttentionWorkflow: This issue is responsible by Azure service team.Workflow: This issue is responsible by Azure service team.StorageStorage Service (Queues, Blobs, Files)Storage Service (Queues, Blobs, Files)customer-reportedIssues that are reported by GitHub users external to the Azure organization.Issues that are reported by GitHub users external to the Azure organization.needs-team-attentionWorkflow: This issue needs attention from Azure service team or SDK teamWorkflow: This issue needs attention from Azure service team or SDK teamquestionThe issue doesn't require a change to the product in order to be resolved. Most issues start as thatThe issue doesn't require a change to the product in order to be resolved. Most issues start as that
Metadata
Metadata
Labels
Service AttentionWorkflow: This issue is responsible by Azure service team.Workflow: This issue is responsible by Azure service team.StorageStorage Service (Queues, Blobs, Files)Storage Service (Queues, Blobs, Files)customer-reportedIssues that are reported by GitHub users external to the Azure organization.Issues that are reported by GitHub users external to the Azure organization.needs-team-attentionWorkflow: This issue needs attention from Azure service team or SDK teamWorkflow: This issue needs attention from Azure service team or SDK teamquestionThe issue doesn't require a change to the product in order to be resolved. Most issues start as thatThe issue doesn't require a change to the product in order to be resolved. Most issues start as that
Describe the bug
When the existence of a non-existent file is checked with the Azure file client, objects in parent scopes are not garbage collected anymore.
To Reproduce
I reproduced this on Linux machines running in Azure Kubernetes and a Mac both in and outside of a Docker container. MWE:
This fills about 1 GB of memory every 5 iterations, eventually leading to an out-of-memory error.
Expected behavior
This should be able to run forever, as it is when the file existence check is omitted or the existence of an existent file is checked.