-
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
Ignore multiple completions for awakeables #637
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. Can you quickly add some more context to this PR or the originating issue which panic you saw and where it originated? I guess it was not in the store_completion
method. This would help me validating the change.
The panic comes from Logically, it seems to me more appropriate that we do this check in the state machine, that is in |
I also tested this change with restatedev/e2e#171 and it doesn't panic anymore. |
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.
LGTM. +1 for merging.
I was confused as well because I couldn't find a check whether the entry is completed or not in the |
While debugging an e2e test we've found out that the runtime can panic in `Codec::write_completion` in case the user tries to complete an awakeable twice. This commit avoids this panic, but rather logs that the user is trying to complete an awakeable twice.
7d32fd6
to
070899f
Compare
Fix #636