EFS - files not found sometimes and randomly

0

Hi, We use EFS to read and write files from Lamdas (call in a step function). The first lambda read a file from S3 and write it in EFS. A second lambda read to this file from EFS.

The problem is that sometimes (rarely but enough to be a problem) the second lambda don't find the file on EFS (Error NotFoundFile). We check the file is here on the first lambda so it's not a problem of writing just the second lambda seems not to have access to it yet. There is some miliseconds between the 2 calls.

All quotas of EFS seems to be ok and the error is not reproducible but occurs several times per day. Have you an idea to resolve the problem ?

질문됨 2년 전552회 조회
1개 답변
0

We finally found the problem, it seems that event notifications from S3 are sometimes duplicated. I don't precise in my first message, but a third lambda delete file when it's not usefull anymore. So when event is duplicated, it is treated once well and it is deleted during the second treatment, that causes errors. Hope it can be helpful for someone else :)

답변함 2년 전

로그인하지 않았습니다. 로그인해야 답변을 게시할 수 있습니다.

좋은 답변은 질문에 명확하게 답하고 건설적인 피드백을 제공하며 질문자의 전문적인 성장을 장려합니다.

질문 답변하기에 대한 가이드라인

관련 콘텐츠