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

feat: reject events on retryable errors #75

Merged
merged 2 commits into from
Aug 26, 2024
Merged

Conversation

pvlugter
Copy link
Contributor

Refs #18

Reject events on retryable errors, rather than journal failure. Currently only for write throttling errors. API call timeouts could also be added, but given that it will be a client-side timeout then it's possible that the event has been persisted.

Not sure there's a way to create tests for this with local DynamoDB. Unless we mock out the journal dao with possible failures. Have tested with actual DynamoDB and a sample application.

@pvlugter
Copy link
Contributor Author

Ran some tests with short API call timeouts, and with the event writes succeeding even if it times out, we won't want to mark those as rejected.

@pvlugter pvlugter force-pushed the reject-retryable-errors branch from ad918de to e702ddd Compare August 21, 2024 22:37
@pvlugter pvlugter requested a review from patriknw August 26, 2024 00:41
Copy link
Member

@patriknw patriknw left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@patriknw patriknw merged commit 5875bff into main Aug 26, 2024
3 checks passed
@patriknw patriknw deleted the reject-retryable-errors branch August 26, 2024 07:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants