question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

[BUG] FindBlobsByTagsAsync() using BlobContainerClient keeps running till timeout

See original GitHub issue

Library name and version

Azure.Storage.Blobs 12.11.0

Describe the bug

FindBlobsByTagsAsync() using BlobContainerClient does not return any results. (ref : https://docs.microsoft.com/en-us/dotnet/api/azure.storage.blobs.blobcontainerclient.findblobsbytagsasync?view=azure-dotnet) This keeps running for a while and times out.

I am using the same expression with FindBlobsByTagsAsync() using BlobServiceClient and it works perfectly fine. I also tried using @container attribute in the sqlExpression to point to the same container and that also works fine.

Unable to figure out what is wrong when using FindBlobsByTagsAsync() with BlobContainerClient

Expected behavior

Expecting FindBlobsByTagsAsync() using BlobContainerClient to behave same as FindBlobsByTagsAsync() using BlobServiceClient with @container attribute. It should return the blobs with tags as per sql expression

Actual behavior

The function keeps running for sometime and times out eventually giving the error : {“code”:“InternalServerError”,“details”:null,“message”:“Retry failed after 6 tries. Retry settings can be adjusted in ClientOptions.Retry. (The operation was cancelled because it exceeded the configured timeout of 0:01:40. Network timeout can be adjusted in ClientOptions.Retry.NetworkTimeout.) (The operation was cancelled because it exceeded the configured timeout of 0:01:40. Network timeout can be adjusted in ClientOptions.Retry.NetworkTimeout.) (The operation was cancelled because it exceeded the configured timeout of 0:01:40. Network timeout can be adjusted in ClientOptions.Retry.NetworkTimeout.) (The operation was cancelled because it exceeded the configured timeout of 0:01:40. Network timeout can be adjusted in ClientOptions.Retry.NetworkTimeout.) (The operation was cancelled because it exceeded the configured timeout of 0:01:40. Network timeout can be adjusted in ClientOptions.Retry.NetworkTimeout.) (An error occurred while sending the request.)”,“target”:null}

Reproduction Steps

`

       var sqlExpression = $"\"{key}\"='{value}'";

      // case 1 : using serviceClient - works fine
      
        var tasks = new List<Task<T>>();

        var sqlExpressionWithContianer = $"@container = '{containerName}' and {sqlExpression}";

        await foreach (TaggedBlobItem taggedBlobItem in serviceClient.FindBlobsByTagsAsync(sqlExpressionWithContianer))
        {
            tasks.Add(GetItem<T>(taggedBlobItem.BlobName)); // get item from blobname
        }
        var results = await Task.WhenAll(tasks);
         
       // case 2 : using containerClient - keeps running till timeout 

        var tasksNew = new List<Task<T>>();

        await foreach (TaggedBlobItem taggedBlobItem in containerClient.FindBlobsByTagsAsync(sqlExpression))
        {
            tasksNew.Add(GetItem<T>(taggedBlobItem.BlobName)); // get item from blobname
        }
        var resultsNew = await Task.WhenAll(tasksNew);

`

Environment

net6.0 IDE and version : Visual Studio Enterprise 2022 (64-bit) - Current Version 17.1.1

Issue Analytics

  • State:open
  • Created a year ago
  • Reactions:1
  • Comments:11 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
seanmcc-msftcommented, Apr 18, 2022

Hi everyone, this is a known issue in the service. A fix is rolling out, and this issue should stop reproducing in the next few weeks.

0reactions
Ghyath-Serhalcommented, Jun 23, 2022

@seanmcc-msft, @navba-MSFT . Any updates about this issue? Is it solved or still pending?

Read more comments on GitHub >

github_iconTop Results From Across the Web

Solve timeout errors on file uploads with new azure.storage ...
upload() fails on larger files with a timeout error that completely ignores the timeout parameter of the function. I get a ServiceResponseError ...
Read more >
Monitor and troubleshoot Azure Storage (classic logs & ...
This guide shows you how to use features such as Azure Storage Analytics, client-side logging in the Azure Storage Client Library, and other ......
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found