Skip to content

Conversation

@slinkydeveloper
Copy link
Contributor

@slinkydeveloper slinkydeveloper commented Aug 26, 2024

Fix #1449

We currently don't have any e2e tests for this, I've tested it locally though and it works. I'll add the integration tests as next step

@slinkydeveloper
Copy link
Contributor Author

Related sdk-shared-core PR: restatedev/sdk-shared-core#7 and sdk-rust PR: restatedev/sdk-rust#20

@slinkydeveloper
Copy link
Contributor Author

Seems like this PR uncovered an issue with version negotiation in typescript, looking at it now...

@slinkydeveloper
Copy link
Contributor Author

The integration test posted here restatedev/sdk-test-suite#10 passes with the pending Rust SDK branch, so all looks good.

@slinkydeveloper
Copy link
Contributor Author

slinkydeveloper commented Aug 26, 2024

Fix for typescript: restatedev/sdk-typescript#418

@slinkydeveloper slinkydeveloper force-pushed the issues/1449 branch 2 times, most recently from 011e962 to 01d2cc5 Compare August 26, 2024 14:55
Copy link
Contributor

@tillrohrmann tillrohrmann left a comment

Choose a reason for hiding this comment

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

Thanks for implementing a mechanism to implement flexible retry strategies on the SDK side @slinkydeveloper. The changes look good to me. I only had a few minor comments. +1 for merging after resolving them.

Comment on lines +60 to +61
const SERVICE_PROTOCOL_VERSION_V2: HeaderValue =
HeaderValue::from_static("application/vnd.restate.invocation.v2");
Copy link
Contributor

Choose a reason for hiding this comment

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

We did introduce this new service protocol version to prevent a new SDK from connecting to an old server and assuming that the new retry policy is working but in reality it is not, right?

…5aad2b

0d35aad2b Add fields for the Side effect retry feature (restatedev#95)
89224c68f Add buf configuration

git-subtree-dir: crates/types/service-protocol
git-subtree-split: 0d35aad2b295687cbbfebfe6becfda052f1fee9d
* Introduce Protocol Version V2
* Also adds a workaround to make sure typescript SDK <= 1.2.1 works with Restate 1.1
@slinkydeveloper slinkydeveloper merged commit dd25776 into restatedev:main Aug 27, 2024
@slinkydeveloper slinkydeveloper deleted the issues/1449 branch August 27, 2024 17:48
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.

Limit retries of side effects

2 participants