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

Whitelist context deadline exceeded error for retry #981

Merged
merged 2 commits into from
Jul 20, 2018
Merged

Conversation

wxing1292
Copy link
Contributor

@wxing1292 wxing1292 commented Jul 19, 2018

The context deadline exceed error can be return by the logic below.

Ref:

  1. https://github.com/uber/cadence/blob/a496241aae71e53196b4b16c354c90814815930a/client/history/client.go#L629

  2. https://github.com/uber/cadence/blob/b21b8096385244a2658419c5b0b65c7f78db15d3/common/util.go#L219

The logic is checking whether the context is done, if not redirect and retry on shard ownership lost error

@wxing1292 wxing1292 requested a review from samarabbas July 19, 2018 07:33
@wxing1292 wxing1292 merged commit c19a5e6 into master Jul 20, 2018
@wxing1292 wxing1292 deleted the retry-error branch July 20, 2018 17:46
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