adlfs icon indicating copy to clipboard operation
adlfs copied to clipboard

kwargs not propagated to BlobServiceClient

Open vladidobro opened this issue 5 months ago • 2 comments

From the PyPI docs:

The AzureBlobFileSystem accepts all of the Async BlobServiceClient arguments.

But after debugging why my retry configuration is not propagated

In [32]: b = fsspec.filesystem('az', account_name='account', anon=False, retry_total=8)

In [33]: b.service_client._pipeline._impl_policies[10]
Out[33]: <azure.storage.blob._shared.policies_async.ExponentialRetry at 0x114fdaea0>

In [34]: b.service_client._pipeline._impl_policies[10].total_retries
Out[34]: 3

I read the code and it seems that creating the BlobServiceClient is completely oblivious to the AzureBlobFileSystem kwargs https://github.com/fsspec/adlfs/blob/main/adlfs/spec.py#L465

It seems like this is not intended, or did I understand something wrong? It feels like it should be enough to pass **self.kwargs to the BlobServiceClient constructors, but I am not sure.

vladidobro avatar Jul 09 '25 12:07 vladidobro