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 年前

您尚未登入。 登入 去張貼答案。

一個好的回答可以清楚地回答問題並提供建設性的意見回饋,同時有助於提問者的專業成長。

回答問題指南