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

Implement retrying for transient DE errors #314

Merged
merged 2 commits into from
Aug 20, 2024
Merged

Implement retrying for transient DE errors #314

merged 2 commits into from
Aug 20, 2024

Conversation

csutter
Copy link
Contributor

@csutter csutter commented Aug 7, 2024

On occasion, we will experience transient errors from Discovery Engine that will resolve themselves if we wait briefly and try again. In particular, this can happen when a number of updates come through in quick succession for the same document that are handled by different workers.

  • Add ability for put/delete operations to try for up to three attempts when an error occurs before giving up

On occasion, we will experience transient errors from Discovery Engine
that will resolve themselves if we wait briefly and try again. In
particular, this can happen when a number of updates come through in
quick succession for the same document that are handled by different
workers.

- Add ability for put/delete operations to try for up to three attempts
  when an error occurs before giving up
Copy link
Member

@kevindew kevindew left a comment

Choose a reason for hiding this comment

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

Looks good to me, just a suggestion on whether you want to reduce the repetition between tests?

- Extract shared context and examples from tests
- Simplify `subject` logic in one place
Copy link
Member

@kevindew kevindew left a comment

Choose a reason for hiding this comment

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

Nice one, looks good to me

@csutter csutter merged commit dcce01b into main Aug 20, 2024
8 checks passed
@csutter csutter deleted the too-many-updates branch August 20, 2024 09:24
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