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

Stop returning error logs + stack trace when out of gas in ApplyFuncIfNoErr #2914

Merged
merged 3 commits into from
Oct 1, 2022

Conversation

ValarDragon
Copy link
Member

Backportable component of #2487

What is the purpose of the change

Stop panic logs such as https://gist.github.com/jhernandezb/55b70c570a23dd2cc709b630a04acc16 in node operator logs

Brief Changelog

  • Check if the error type is an out of gas error, if so suppress dumping panic logs

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? yes
  • Is a relevant changelog entry added to the Unreleased section in CHANGELOG.md? yes
  • How is the feature or change documented? not applicable

theres an out of gas in ApplyFuncIfNoErr
@ValarDragon ValarDragon requested a review from a team September 30, 2022 21:39
@ValarDragon ValarDragon added A:backport/v8.x backport patches to v8.x branch A:backport/v11.x backport patches to v11.x branch A:backport/v12.x backport patches to v12.x branch V:state/compatible/backport State machine compatible PR, should be backported labels Sep 30, 2022
@github-actions github-actions bot added the C:docs Improvements or additions to documentation label Sep 30, 2022
@p0mvn p0mvn merged commit 1ec8658 into main Oct 1, 2022
@p0mvn p0mvn deleted the dev/stop_out_of_gas_panic_dump branch October 1, 2022 01:36
mergify bot pushed a commit that referenced this pull request Oct 1, 2022
…fNoErr (#2914)

* Stop returning error logs + stack trace when
theres an out of gas in ApplyFuncIfNoErr

* Fix import

* Changelog

(cherry picked from commit 1ec8658)

# Conflicts:
#	CHANGELOG.md
#	osmoutils/cache_ctx.go
mergify bot pushed a commit that referenced this pull request Oct 1, 2022
…fNoErr (#2914)

* Stop returning error logs + stack trace when
theres an out of gas in ApplyFuncIfNoErr

* Fix import

* Changelog

(cherry picked from commit 1ec8658)

# Conflicts:
#	CHANGELOG.md
mergify bot pushed a commit that referenced this pull request Oct 1, 2022
…fNoErr (#2914)

* Stop returning error logs + stack trace when
theres an out of gas in ApplyFuncIfNoErr

* Fix import

* Changelog

(cherry picked from commit 1ec8658)
p0mvn pushed a commit that referenced this pull request Oct 1, 2022
…fNoErr (#2914) (#2919)

* Stop returning error logs + stack trace when
theres an out of gas in ApplyFuncIfNoErr

* Fix import

* Changelog

(cherry picked from commit 1ec8658)

Co-authored-by: Dev Ojha <[email protected]>
@czarcas7ic
Copy link
Member

Is there a specific reason we are not backporting to v10x?

mattverse pushed a commit that referenced this pull request Oct 13, 2022
…fNoErr (backport #2914) (#2917)

* Stop returning error logs + stack trace when out of gas in ApplyFuncIfNoErr (#2914)

* Stop returning error logs + stack trace when
theres an out of gas in ApplyFuncIfNoErr

* Fix import

* Changelog

(cherry picked from commit 1ec8658)

# Conflicts:
#	CHANGELOG.md
#	osmoutils/cache_ctx.go

* add gitiginore and changelog

* merge conflict fix

Co-authored-by: Dev Ojha <[email protected]>
Co-authored-by: Dev Ojha <[email protected]>
mattverse added a commit that referenced this pull request Oct 13, 2022
…fNoErr (backport #2914) (#2918)

* Stop returning error logs + stack trace when out of gas in ApplyFuncIfNoErr (#2914)

* Stop returning error logs + stack trace when
theres an out of gas in ApplyFuncIfNoErr

* Fix import

* Changelog

(cherry picked from commit 1ec8658)

# Conflicts:
#	CHANGELOG.md

* Fix merge conflict

Co-authored-by: Dev Ojha <[email protected]>
Co-authored-by: mattverse <[email protected]>
@github-actions github-actions bot mentioned this pull request Mar 15, 2024
@github-actions github-actions bot mentioned this pull request Apr 15, 2024
@github-actions github-actions bot mentioned this pull request May 15, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A:backport/v8.x backport patches to v8.x branch A:backport/v11.x backport patches to v11.x branch A:backport/v12.x backport patches to v12.x branch C:docs Improvements or additions to documentation V:state/compatible/backport State machine compatible PR, should be backported
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

4 participants