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

fix: store prefetched exceptions #733

Closed
wants to merge 4 commits into from
Closed

fix: store prefetched exceptions #733

wants to merge 4 commits into from

Conversation

daniel-sanche
Copy link
Contributor

@daniel-sanche daniel-sanche commented Oct 9, 2024

Resolves issues with pre-fetching streams not being retried when they should be

More context in attached bug

Fixes: #731

Will add tests if there are no objections to the change

@daniel-sanche daniel-sanche requested review from a team as code owners October 9, 2024 18:23
@product-auto-label product-auto-label bot added the size: xs Pull request size is extra small. label Oct 9, 2024
@parthea parthea assigned daniel-sanche and unassigned vchudnov-g Oct 9, 2024
@parthea parthea marked this pull request as draft October 9, 2024 18:45
@parthea
Copy link
Collaborator

parthea commented Oct 9, 2024

@daniel-sanche SG. Please assign back once tests are added and presubmits are green

@product-auto-label product-auto-label bot added size: s Pull request size is small. and removed size: xs Pull request size is extra small. labels Oct 9, 2024
@parthea parthea marked this pull request as ready for review October 9, 2024 19:09
@parthea parthea assigned parthea and unassigned daniel-sanche Oct 9, 2024
elif hasattr(self, "_stored_first_error"):
exc = self._stored_first_error
del self._stored_first_error
raise exc
Copy link
Contributor Author

Choose a reason for hiding this comment

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

I'm considering whether it's worth refactoring both these variables, so we don't have to do two hasattr lookups for each stream result. For now I'm just following the existing code though

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
size: s Pull request size is small.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Streams with prefecth_first_result do not convert grpc errors
3 participants