Azure functions blob storage issue

%3CLINGO-SUB%20id%3D%22lingo-sub-2818095%22%20slang%3D%22en-US%22%3EAzure%20functions%20blob%20storage%20issue%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2818095%22%20slang%3D%22en-US%22%3E%3CP%3EWe%20have%20an%20Linux%20based%20queue%20triggered%20Python%20Azure%20Function%20App%20running%20on%20consumption%20plan.%20We%20have%20a%20process%20running%20on%20another%20server%20to%20ingest%20about%204%20to%205%20queue%20message%20per%20second%20after%20uploading%20a%20dozen%20blobs%20into%20Azure%20blob%20storage%20which%20can%20go%20up%20to%20a%20couple%20of%20thousand%20messages%2F%20tens%20of%20thousands%20blobs%20put%20in%20the%20storage%20account%20in%20a%20span%20of%2015%20minutes.%3C%2FP%3E%3CP%3EThe%20Azure%20function%20app%20then%20processes%20the%20queue%20messages%20reading%20a%20dozen%20blobs%20using%20the%20Blob%20URL%20mentioned%20in%20each%20queue%20message%2C%20processes%20and%20outputs%20the%20data%20to%20blob%20storage%20in%20parallel%20as%20it%20auto%20scales.%3C%2FP%3E%3CP%3EThe%20whole%20program%20is%20written%20in%20python%20pandas%2C%20that%20reads%20a%20csv%20file%20using%20Azure%20blob%20URL%2C%20processes%20it%20and%20pushes%20csv%20back%20into%20a%20different%20container.%20A%20few%20instances%20of%20the%20function%20randomly%20fails%20saying%20that%20there's%20a%20temporary%20failure%20in%20name%20resolution%20of%20input%20blobs%20and%20URL%20cannot%20be%20opened.%3C%2FP%3E%3CP%3EI%20checked%20the%20BlobURL%20in%20question%20and%20was%20able%20to%20access%20and%20download%20the%20file%20directly%20using%20the%20browser.%20The%20failures%20are%20random%20and%20sometimes%20doesn't%20happen.%20Each%20blob%20itself%20is%20not%20accessed%20concurrently%20by%20different%20instances%2C%20however%20the%20container%20is%20accessed%20by%20tens%20of%20function%20instances%20concurrently.%3C%2FP%3E%3CP%3EOne%20area%20of%20doubt%20is%20that%20since%20the%20blobs%20are%20uploaded%20asynchronously%20by%20another%20program%2C%20the%20function%20app%20might%20be%20trying%20to%20download%20it%20before%20the%20upload%20was%20complete%20but%20we%20do%20await%20the%20upload%20to%20be%20completed%20before%20putting%20in%20the%20queue%20message%20and%20even%20if%20it%20was%20a%20case%20I%20would%20expect%20to%20receive%20a%20blob%20does%20not%20exist%20error%20instead%20of%20a%20name%20resolution.%3C%2FP%3E%3CP%3EI%20tried%20to%20look%20up%20on%20the%20internet%20but%20couldn't%20find%20anything%20related%20to%20this%20specific%20case%20but%20a%20general%20search%20on%20the%20error%20itself%20suggests%20that%20the%20error%20might%20be%20related%20to%20server%2Fhost%20side%20which%20in%20this%20case%20is%20Azure%20function.%20Any%20thoughts%2Fhelp%20would%20be%20much%20appreciated.%3C%2FP%3E%3CP%3EThe%20error%20we%20get%20is%20below.%20Happy%20to%20post%20the%20full%20stack%20trace%20if%20needed%3C%2FP%3E%3CPRE%3EURLError%3A%20%3CURLOPEN%20error%3D%22%22%3E3%5D%20Temporary%20failure%20%3CSPAN%20class%3D%22%22%3Ein%3C%2FSPAN%3E%20name%20resolution%26gt%3B%3C%2FURLOPEN%3E%3C%2FPRE%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E
Occasional Visitor

We have an Linux based queue triggered Python Azure Function App running on consumption plan. We have a process running on another server to ingest about 4 to 5 queue message per second after uploading a dozen blobs into Azure blob storage which can go up to a couple of thousand messages/ tens of thousands blobs put in the storage account in a span of 15 minutes.

The Azure function app then processes the queue messages reading a dozen blobs using the Blob URL mentioned in each queue message, processes and outputs the data to blob storage in parallel as it auto scales.

The whole program is written in python pandas, that reads a csv file using Azure blob URL, processes it and pushes csv back into a different container. A few instances of the function randomly fails saying that there's a temporary failure in name resolution of input blobs and URL cannot be opened.

I checked the BlobURL in question and was able to access and download the file directly using the browser. The failures are random and sometimes doesn't happen. Each blob itself is not accessed concurrently by different instances, however the container is accessed by tens of function instances concurrently.

One area of doubt is that since the blobs are uploaded asynchronously by another program, the function app might be trying to download it before the upload was complete but we do await the upload to be completed before putting in the queue message and even if it was a case I would expect to receive a blob does not exist error instead of a name resolution.

I tried to look up on the internet but couldn't find anything related to this specific case but a general search on the error itself suggests that the error might be related to server/host side which in this case is Azure function. Any thoughts/help would be much appreciated.

The error we get is below. Happy to post the full stack trace if needed

URLError: <urlopen error [Errno -3] Temporary failure in name resolution>

 

0 Replies