Repository navigation
fix: return 202 upon unknown message status in sync call HTTP handler - #9691
Merged
Merged
Conversation
kpop-dfinity
approved these changes
Apr 1, 2026
venkkatesh-sekar
approved these changes
Apr 1, 2026
kpop-dfinity
approved these changes
Apr 1, 2026
mraszyk
enabled auto-merge
April 1, 2026 17:43
pull Bot
pushed a commit
to mikeyhodl/ic
that referenced
this pull request
Apr 22, 2026
…pl (dfinity#9850) Move the `max_certified_height` channel from `CertifierImpl` to `StateManagerImpl`. The reason for this change is that the consensus certifier was updating the channel after every `deliver_state_certification`, but the certified state is not available for heights that have not been committed and cloned by the state manager. This issue has also been observed in production (see [slack](https://dfinity.slack.com/archives/C020G13AS4F/p1773656957580139)) and mitigated by a work-around that checks if the channel was not updated too early ([PR](dfinity#9691)). This PR implements a proper fix by ensuring that the channel is not updated too early at the first place. --------- Co-authored-by: IDX GitHub Automation <[email protected]>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This PR fixes the HTTP handler for the synchronous update call (
/api/v4/canister/.../calland the deprecated/api/v3/canister/.../call) by returning a 202 status code instead of a certificate that does not contain the update call status (such a certificate is unexpected by IC agents and could lead to spurious errors).The root cause for a certificate not containing the update call status is:
The root cause will be fixed in separate follow-up PRs (that will also add a critical error in the HTTP handler if the certificate still does not contain the update call status).