-
Notifications
You must be signed in to change notification settings - Fork 3
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 tests for cancellation #236
Conversation
107022d
to
462e0f0
Compare
// The termination signal might arrive before the blocking call to the cancel singleton was | ||
// made, | ||
// so we need to retry. |
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.
You can add a sync point with AwakeableHolder to CancelTestService as well.
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.
This wouldn't work for example when sleeping in the BlockingService
. Will keep it as is.
462e0f0
to
0ff6312
Compare
Thanks for the review @slinkydeveloper. I've addressed your comments. PTAL. |
This commit adds new e2e tests which ensure that cancellation works. The following call chains are canceled: * CancelTestService/StartTest --> BlockingService/Block --> BlockingSerivce/Block (inboxed call since BlockingService is singleton) * CancelTestService/StartTest --> BlockingService/Block --> uncompleted awakeable * CancelTestService/StartTest --> BlockingService/Block --> very long sleep This fixes restatedev#228.
0ff6312
to
58e590b
Compare
This commit adds new e2e tests which ensure that cancellation works.
The following call chains are canceled:
This fixes #228.
For these e2e tests to work, we need to merge the following PRs first: