Skip to content
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

fix: Add Err handling for ABCI Query Route for wasm binded query #6886

Merged
merged 3 commits into from
Dec 1, 2023

Conversation

mattverse
Copy link
Member

Closes: #XXX

What is the purpose of the change

From {unknown}{unknown} reasons, ABCI Query Route would return value of nil without erroring. (Mostly due to how we handle concurrent handling in ABCI Query, but need more investigation on this)

Due to the reasons above, we would get a panic in our nodes, since we're trying to access a nil value.
This PR eases the panicking behaviour, catching if the value is nil beforeahand.

Testing and Verifying

This change is a trivial rework / code cleanup without any test coverage.

Documentation and Release Note

  • Does this pull request introduce a new feature or user-facing behavior changes?
  • Changelog entry added to Unreleased section of CHANGELOG.md?

Where is the change documented?

  • Specification (x/{module}/README.md)
  • Osmosis documentation site
  • Code comments?
  • N/A

@mattverse mattverse added the V:state/breaking State machine breaking PR label Nov 16, 2023
Copy link
Contributor

github-actions bot commented Dec 1, 2023

This pull request has been automatically marked as stale because it has not had any recent activity. It will be closed if no further activity occurs. Thank you!

@github-actions github-actions bot added the Stale label Dec 1, 2023
@mattverse mattverse removed the Stale label Dec 1, 2023
Copy link
Member

@czarcas7ic czarcas7ic left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ACK

@czarcas7ic czarcas7ic merged commit f11259d into main Dec 1, 2023
1 check passed
@czarcas7ic czarcas7ic deleted the mattverse/stargate branch December 1, 2023 03:54
@czarcas7ic czarcas7ic added the A:backport/v21.x backport patches to v21.x branch label Dec 1, 2023
mergify bot pushed a commit that referenced this pull request Dec 1, 2023
* Add err handle

* ADd changelog

(cherry picked from commit f11259d)
mattverse added a commit that referenced this pull request Dec 1, 2023
…) (#6970)

* Add err handle

* ADd changelog

(cherry picked from commit f11259d)

Co-authored-by: Matt, Park <[email protected]>
@github-actions github-actions bot mentioned this pull request Jan 1, 2024
@github-actions github-actions bot mentioned this pull request Mar 15, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A:backport/v21.x backport patches to v21.x branch V:state/breaking State machine breaking PR
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants