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

Fixed missing retry after for stream queries. #1263

Merged
merged 10 commits into from
Mar 17, 2020

Conversation

j82w
Copy link
Contributor

@j82w j82w commented Mar 6, 2020

Pull Request Template

Description

This fixes a bug where retry after was not getting set on throttle responses for GetItemQueryStreamIterator. Adds additional test to validate the retry after time is always set.

Type of change

Please delete options that are not relevant.

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)
  • This change requires a documentation update

…ously the header would not get set in the query stream APIs.
@j82w j82w added the QUERY label Mar 6, 2020
@j82w j82w self-assigned this Mar 6, 2020
@j82w j82w added the Internal team blocked Issue blocking internal teams label Mar 6, 2020
ealsur
ealsur previously approved these changes Mar 9, 2020
@@ -192,10 +192,10 @@ private static string MergeErrorMessages(string message, Error error)

if (string.IsNullOrEmpty(message))
{
return error.Message;
return error.ToString();
Copy link
Member

Choose a reason for hiding this comment

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

nice catch

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 didn't realize that Error is a JSON bag and some error objects don't put it in the message so only ToString() shows it.

Copy link
Member

@kirankumarkolli kirankumarkolli left a comment

Choose a reason for hiding this comment

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

:shipit:

@j82w j82w merged commit e534de2 into master Mar 17, 2020
@j82w j82w deleted the users/jawilley/query/retryaftertest branch March 17, 2020 20:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Internal team blocked Issue blocking internal teams QUERY
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants