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

Add Eager state support #87

Merged
merged 1 commit into from
Jun 5, 2023
Merged

Add Eager state support #87

merged 1 commit into from
Jun 5, 2023

Conversation

slinkydeveloper
Copy link
Contributor

Fix #86

@slinkydeveloper slinkydeveloper added this to the 1A milestone May 25, 2023
@github-actions
Copy link
Contributor

github-actions bot commented May 25, 2023

Unit Test Results

132 tests  +20   132 ✔️ +20   8s ⏱️ ±0s
  14 suites +  1       0 💤 ±  0 
  14 files   +  1       0 ±  0 

Results for commit 58d06b4. ± Comparison against base commit 5c9e8df.

♻️ This comment has been updated with latest results.

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 creating this PR @slinkydeveloper. The changes look good to me. Only the MessageHeader::fromMessage looks a bit dangerous right now. Maybe we need to change this method slightly or enrich the StartMessage with more information.

}
}

@Override
public void cancel() {}

static MessageHeader headerFromMessage(MessageLite msg) {
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Here I copy-pasted the method, rather than using what's in ProtoUtils, to avoid adding the dependency on the test jar (as this package is supposed to be published).

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.

The changes look good to me. There seems to be a violation of the introduced invarian that the SDK must not send a completion message.

slinkydeveloper added a commit that referenced this pull request Jun 5, 2023
* Support MessageHeader.PARTIAL_STATE_FLAG
* Propagate the MessageHeader to the state machine
* Implement LocalStateStorage and wire it up
* Add the EagerStateTest
* Modified the `MessageHeader#fromMessage` to be safer.
* Support MessageHeader.PARTIAL_STATE_FLAG
* Propagate the MessageHeader to the state machine
* Implement LocalStateStorage and wire it up
* Add the EagerStateTest
* Modified the `MessageHeader#fromMessage` to be safer.
@slinkydeveloper slinkydeveloper merged commit 5ab3461 into main Jun 5, 2023
@slinkydeveloper slinkydeveloper deleted the issues/86 branch June 5, 2023 11:01
slinkydeveloper added a commit that referenced this pull request Apr 16, 2024
….a4a8596e

a4a8596e Now side effect is part of the protocol (#87)
494f765c Format
fec17c9e Change x-restate-user-agent to x-restate-server, to be similar to https://www.rfc-editor.org/rfc/rfc9110#field.server

git-subtree-dir: sdk-core/src/main/service-protocol
git-subtree-split: a4a8596eab8c554dce0f8f0f1020d5ddc623a305
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.

Implement the StartMessage.state and PARTIAL_STATE flag
2 participants