I have a lambda that is using an S3 trigger (PUT) when a .zip
file is created. The lambda is unzipping the content to a folder in the same S3 (usually csvs) then moves the file to a PROCESSED
folder and removes the .zip
so it won't trigger again. In rare times, however, something weird is happening...the functions seems to have processed the same file twice...looking at versions, one.zip file was create but 2 x each content was extracted and the file .zip
was 2 x deleted and 2 times renamed. So the first thing I tries was to look into CloudWatch but there is only one set of logs there. I also checked the function and there's no way it would just process the same file twice in one instance.
For a synchronous event trigger such as S3, this can happen on a very rare occasion from AWS. It is relevant in cases where the scale is relatively large (at least millions, if not billions).
A few things to consider:
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.