Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Handle missing arrangements in S3 #28

Open
cavis opened this issue May 28, 2020 · 0 comments
Open

Handle missing arrangements in S3 #28

cavis opened this issue May 28, 2020 · 0 comments
Labels

Comments

@cavis
Copy link
Member

cavis commented May 28, 2020

Seeing a small number of logged errors, where the counts lambda gets bytes downloaded for a digest. But gets a 404 from S3 trying to get the arrangement json.

Appears to be a race condition where the stitch-lambda just PUT the arrangement json. But the bytes came in too fast for eventual read consistency. Which seems odd to me, since on the first getObject request S3 is supposed to guarantee read consistency. Should probably re-read those docs again.

In any case - come up with some sort of a strategy to address this. Maybe throw records back on kinesis like the analytics DDB lambda does? Or use S3 listObjects requests before getting? Or wait a very short time in the same lambda execution then retry? Or slow the bytes lambda kinesis down?

Crazy ideas!

@cavis cavis added the medium label Jun 1, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant