-
Notifications
You must be signed in to change notification settings - Fork 316
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
feat: [MR-552] Define RejectCode::SysUnknown
and error codes
#1380
Conversation
Define new `RejectCode` variant `SysUnknown` (for when the response to a best-effort call is unknown) and two `ErrorCode` variants -- `DeadlineExpired` and `ResponseDropped` -- to be used when expiring best-effort calls or dropping best-effort responses.
Technically, we should also have a new certification version to go along with it (e.g. I can do it, but it's definitely not necessary in any way. WDYT? |
@alin-at-dfinity one car argue that |
I see you also defined new |
@rumenov, @stiegerc we decided against using |
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.
Code wise the change LGTM.
I'd suggest to wait a bit to see whether there are strong objections against this new reject code based on the questions/discussions above.
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, is in line with the proposed interface spec change
One thing I don't know is if we're still maintaining the list of error codes - it's definitely gotten stale, but if we want to maintain it, we should add these codes there at some point. |
Ah I see, makes sense. |
Why if the message was successfully executed it cannot be retried ? |
It can but it may still be important information for the canister that the message may have arrived, whereas with |
…ty#1380) [[MR-552]] Define new `RejectCode` variant `SysUnknown` (for when the response to a best-effort call is unknown) and two `ErrorCode` variants -- `DeadlineExpired` and `ResponseDropped` -- to be used when expiring best-effort calls or, respectively, when dropping best-effort responses. [MR-552]: https://dfinity.atlassian.net/browse/MR-552?atlOrigin=eyJpIjoiNWRkNTljNzYxNjVmNDY3MDlhMDU5Y2ZhYzA5YTRkZjUiLCJwIjoiZ2l0aHViLWNvbS1KU1cifQ
[MR-552] Define new
RejectCode
variantSysUnknown
(for when the response to a best-effort call is unknown) and twoErrorCode
variants --DeadlineExpired
andResponseDropped
-- to be used when expiring best-effort calls or, respectively, when dropping best-effort responses.