-
Notifications
You must be signed in to change notification settings - Fork 49
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
Record the endpoint id used when invoking a service, and restore it when replaying. #573
Record the endpoint id used when invoking a service, and restore it when replaying. #573
Conversation
There was a problem hiding this 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. +1 for merging after resolving my minor comments.
} | ||
|
||
pub(super) fn chosen_endpoint_to_notify(&mut self) -> Option<EndpointId> { | ||
debug_assert!(matches!( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Same here.
} => { | ||
metadata.journal_metadata.endpoint_id = Some(endpoint_id); | ||
state_storage | ||
.store_invocation_status(&service_id, InvocationStatus::Invoked(metadata)) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Maybe add a comment why InvocationStatus::Invoked
can be assumed here.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Added, check now
9a95b6a
to
1b52615
Compare
Notify through invoker effects the chosen endpoint for an invocation.
055053a
to
70188f3
Compare
Tested with restatedev/e2e#167 and it works 🤩 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for updating this PR @slinkydeveloper. LGTM. +1 for merging after resolving my only comment.
Based on #570, Fix #503