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

Update SDK to use restatedev/service-protocol#58 #189

Merged
merged 3 commits into from
Dec 19, 2023

Conversation

tillrohrmann
Copy link
Contributor

This commit updates the Java SDK to allow all completable journal entries
to have a failure variant. As part of this change, we also added tests to
ensure the correct behavior.

This fixes #187.

Copy link
Contributor

github-actions bot commented Dec 18, 2023

Unit Test Results

  10 files  +  10    10 suites  +10   9s ⏱️ +9s
494 tests +494  487 ✔️ +487  7 💤 +7  0 ±0 
495 runs  +495  488 ✔️ +488  7 💤 +7  0 ±0 

Results for commit 623060f. ± Comparison against base commit 54f0ce3.

♻️ This comment has been updated with latest results.

@@ -19,8 +19,9 @@

class CounterTest {

@SuppressWarnings("unused")
Copy link
Contributor

Choose a reason for hiding this comment

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

False positive :(

@slinkydeveloper
Copy link
Contributor

I mistakenly already introduced on main your protocol changes, you can remove the commits pulling the subtree changes.

@tillrohrmann
Copy link
Contributor Author

I've rebased and addressed your comments @slinkydeveloper. PTAL.

Calling listener.cancel is problematic in the Kotlin case because
it terminates the Kotlin coroutine via an exception which will be
caught and triggers outputting the ErrorMessage.
This commit updates the Java SDK to allow all completable journal entries
to have a failure variant. As part of this change, we also added tests to
ensure the correct behavior.

This fixes restatedev#187.
@tillrohrmann tillrohrmann merged commit 623060f into restatedev:main Dec 19, 2023
3 of 4 checks passed
@tillrohrmann tillrohrmann deleted the issues/187 branch December 19, 2023 11:30
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.

Update SDK wrt to new service protocol definition which makes all completable journal entries fallible
2 participants