Closed bzhou-sw closed 8 months ago
Code calling GetBlockList()
:
...
auto blockBlobClient = containerClient.GetBlockBlobClient(blob_name);
auto blkListResp = blockBlobClient.GetBlockList();
size_t n_blocks = blkListResp.Value.CommittedBlocks.size();
...
@Jinming-Hu, @vinjiang This looks like the service didn't respond with the full data being requested - the call stack indicates that SDK is blocked waiting on data to be sent from the service. Is that possible?
This looks like the service didn't respond with the full data being requested
@LarryOsterman I've never seen this happened before. Is there a default timeout if customer doesn't specify one in context
? If there's a timeout, the request will finally fail with an exception, retry policy will kick in or customer can retry by themselves.
My question for @bzhou-sw :
GetBlockList()
?@bzhou-sw is it possible to share the dump file via email? You can find my email address on my GitHub profile.
@LarryOsterman We could not reproduce the issue with our test Azure account either. But multiple customers had that on their systems randomly but consistently (means if they restart the process, it will hang eventually, can be in hours, or in couple of days, etc), We are using default parameters (i.e. didn't set any retry policy).
To your questions:
GetBlockList()
@Jinming-Hu I will contact you. Thanks.
Hi @bzhou-sw. Thank you for opening this issue and giving us the opportunity to assist. We believe that this has been addressed. If you feel that further discussion is needed, please add a comment with the text "/unresolve" to remove the "issue-addressed" label and continue the conversation.
This issue is gone after upgrading to the latest code.
To be clear, The issue seems gone when we built with commit (which is about 1 year old): Added checks to help diagnose intermittent globalCleanUp test failure (#4593)
I tried to upgrade to latest version, but build failed due to uamqp dependency issue. And I don't know how to solve that.
Really hope SDK team can support build without using vcpkg. At least give some instructions on how to solve the issue.
If you're acquiring storage from vcpkg, then vcpkg should manage dependencies for you, and you'll not need any additional dependencies.
If you're acquiring storage by using a git submodule, then you need to manage dependencies for storage. That means you'll need: azure-core-cpp[curl, http, winhttp]: curl, vcpkg-cmake, vcpkg-cmake-config, wil azure-core-amqp-cpp: azure-c-shared-utility, azure-core-cpp, azure-macro-utils-c, umock-c, vcpkg-cmake, vcpkg-cmake-config
You may also need a dependency on opentelemetry-cpp as well, but that can be removed if needed.
To be clear, The issue seems gone when we built with commit (which is about 1 year old): Added checks to help diagnose intermittent globalCleanUp test failure (#4593)
I tried to upgrade to latest version, but build failed due to uamqp dependency issue. And I don't know how to solve that.
Really hope SDK team can support build without using vcpkg. At least give some instructions on how to solve the issue.
Hi @bzhou-sw, Can you let me know why you are unable to or would like to not use vcpkg for acquiring libraries from the Azure SDK for C++?
Hi @bzhou-sw, since you haven’t asked that we /unresolve
the issue, we’ll close this out. If you believe further discussion is needed, please add a comment /unresolve
to reopen the issue.
Describe the bug
We have a binary (running on ubuntu) using azure-sdk-for-cpp to fetch NSG flow logs from Azure cloud. Some users reported hang problem. We sent SIGABRT to the process to create core dump and saw it is inside libcurl
curl_easy_recv()
called fromAzure::Core::Http::CurlConnection::ReadFromSocket
Exception or Stack Trace
To Reproduce
With the same binary, we could not reproduce the issue in our lab, but multiple users observed the issue happened randomly on their systems. Maybe it is related to some network activity or characteristic?
Code Snippet Add the code snippet that causes the issue.
Expected behavior SDK should not hang.
Screenshots If applicable, add screenshots to help explain your problem.
Setup (please complete the following information):
Ubuntu 20.04.4 LTS (Focal Fossa)
7.68.0-1ubuntu2.21
a511ef60 storage ad-hoc release (#3934) (tag: azure-storage-blobs_12.6.1)
Additional context
Information Checklist Kindly make sure that you have added all the following information above and checkoff the required fields otherwise we will treat the issuer as an incomplete report