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

MultiOperation retry non-durable Update #1652

Merged
merged 3 commits into from
Oct 2, 2024

Conversation

stephanos
Copy link
Contributor

@stephanos stephanos commented Sep 27, 2024

What was changed

  • MultiOperation uses long poll context timeout
  • retry MultiOperation request if the Update is not durable yet

Why?

I noticed these shortcomings when implementing the Java SDK.

Checklist

  1. Closes ExecuteMultiOperation is not retrying non-admitted Updates #1635

  2. How was this tested: added new tests

  3. Any docs updates needed?

@stephanos stephanos marked this pull request as ready for review September 27, 2024 22:29
@stephanos stephanos requested a review from a team as a code owner September 27, 2024 22:29
return nil, fmt.Errorf("%w: %T", errUnsupportedOperation, t)
}
}
return nil, startErr
Copy link
Member

Choose a reason for hiding this comment

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

Can startErr be nil here? Even if server-side contract guarantees not, we might as well set a default somehow.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Right, if the server misbehaves, it could be nil. I'll set a default 👍

@stephanos stephanos merged commit 772bc83 into temporalio:master Oct 2, 2024
13 checks passed
@stephanos stephanos deleted the multiops-retry branch October 2, 2024 21:53
ReyOrtiz pushed a commit to ReyOrtiz/temporal-sdk-go that referenced this pull request Dec 5, 2024
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.

ExecuteMultiOperation is not retrying non-admitted Updates
3 participants