-
Notifications
You must be signed in to change notification settings - Fork 3.6k
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: state listener could observe discarded writes #13459
Merged
Merged
Conversation
This file contains 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
Closes: cosmos#13457 don't pass listeners to nested cached store, only the most inner layer's cache writes should be observed.
yihuang
commented
Oct 6, 2022
Codecov Report
Additional details and impacted files@@ Coverage Diff @@
## main #13459 +/- ##
==========================================
- Coverage 53.87% 53.83% -0.04%
==========================================
Files 641 641
Lines 55031 55034 +3
==========================================
- Hits 29647 29628 -19
- Misses 23001 23025 +24
+ Partials 2383 2381 -2
|
yihuang
changed the title
fix: state listener could observe uncommitted writes
fix: state listener could observe discarded writes
Oct 6, 2022
yihuang
added
backport/0.45.x
backport/0.46.x
PR scheduled for inclusion in the v0.46's next stable release
labels
Oct 6, 2022
tac0turtle
approved these changes
Oct 6, 2022
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.
utACK
julienrbrt
approved these changes
Oct 6, 2022
mergify bot
pushed a commit
that referenced
this pull request
Oct 6, 2022
* fix: state listener could observe uncommitted writes Closes: #13457 don't pass listeners to nested cached store, only the most inner layer's cache writes should be observed. * Update CHANGELOG.md * add unit test * rename Co-authored-by: Marko <[email protected]> (cherry picked from commit bb54c59) # Conflicts: # CHANGELOG.md
mergify bot
pushed a commit
that referenced
this pull request
Oct 6, 2022
* fix: state listener could observe uncommitted writes Closes: #13457 don't pass listeners to nested cached store, only the most inner layer's cache writes should be observed. * Update CHANGELOG.md * add unit test * rename Co-authored-by: Marko <[email protected]> (cherry picked from commit bb54c59) # Conflicts: # CHANGELOG.md
tac0turtle
pushed a commit
that referenced
this pull request
Oct 6, 2022
…13462) * fix: state listener could observe discarded writes (#13459) * fix: state listener could observe uncommitted writes Closes: #13457 don't pass listeners to nested cached store, only the most inner layer's cache writes should be observed. * Update CHANGELOG.md * add unit test * rename Co-authored-by: Marko <[email protected]> (cherry picked from commit bb54c59) # Conflicts: # CHANGELOG.md * Update CHANGELOG.md Co-authored-by: yihuang <[email protected]> Co-authored-by: Julien Robert <[email protected]>
tac0turtle
added a commit
that referenced
this pull request
Oct 9, 2022
…13463) * fix: state listener could observe discarded writes (#13459) * fix: state listener could observe uncommitted writes Closes: #13457 don't pass listeners to nested cached store, only the most inner layer's cache writes should be observed. * Update CHANGELOG.md * add unit test * rename Co-authored-by: Marko <[email protected]> (cherry picked from commit bb54c59) # Conflicts: # CHANGELOG.md * fixes * gofumpt * gofumpt * updates Co-authored-by: yihuang <[email protected]> Co-authored-by: Julien Robert <[email protected]> Co-authored-by: marbar3778 <[email protected]>
Wryhder
pushed a commit
to Wryhder/cosmos-sdk
that referenced
this pull request
Oct 26, 2022
* fix: state listener could observe uncommitted writes Closes: cosmos#13457 don't pass listeners to nested cached store, only the most inner layer's cache writes should be observed. * Update CHANGELOG.md * add unit test * rename Co-authored-by: Marko <[email protected]>
MissingNO57
added a commit
to fetchai/cosmos-sdk
that referenced
this pull request
Nov 30, 2022
## v0.45.9 - 2022-10-14 ATTENTION: This is a security release for the [Dragonberry security advisory](https://forum.cosmos.network/t/ibc-security-advisory-dragonberry/7702). All users should upgrade immediately. Users *must* add a replace directive in their go.mod for the new `ics23` package in the SDK: ``` replace ( github.com/confio/ics23/go => github.com/cosmos/cosmos-sdk/ics23 ) ``` ### Features * [#13435](cosmos/cosmos-sdk#13435) Extend error context when a simulation fails. ### Improvements * [#13369](cosmos/cosmos-sdk#13369) Improve UX for `keyring.List` by returning all retrieved keys. * [#13323](cosmos/cosmos-sdk#13323) Ensure `withdraw_rewards` rewards are emitted from all actions that result in rewards being withdrawn. * [#13321](cosmos/cosmos-sdk#13321) Add flag to disable fast node migration and usage. * (store) [#13326](cosmos/cosmos-sdk#13326) Implementation of ADR-038 file StreamingService, backport #8664. * (store) [#13540](cosmos/cosmos-sdk#13540) Default fastnode migration to false to prevent suprises. Operators must enable it, unless they have it enabled already. ### API Breaking Changes * (cli) [#13089](cosmos/cosmos-sdk#13089) Fix rollback command don't actually delete multistore versions, added method `RollbackToVersion` to interface `CommitMultiStore` and added method `CommitMultiStore` to `Application` interface. ### Bug Fixes * [#...](https://github.com/cosmos/cosmos-sdk/pull/) Implement dragonberry security patch. * For applying the patch please refer to the [RELEASE NOTES](./RELEASE_NOTES.md) * (store) [#13459](cosmos/cosmos-sdk#13459) Don't let state listener observe the uncommitted writes.
19 tasks
4 tasks
JeancarloBarrios
pushed a commit
to agoric-labs/cosmos-sdk
that referenced
this pull request
Sep 28, 2024
…3459) (cosmos#13463) * fix: state listener could observe discarded writes (cosmos#13459) * fix: state listener could observe uncommitted writes Closes: cosmos#13457 don't pass listeners to nested cached store, only the most inner layer's cache writes should be observed. * Update CHANGELOG.md * add unit test * rename Co-authored-by: Marko <[email protected]> (cherry picked from commit bb54c59) # Conflicts: # CHANGELOG.md * fixes * gofumpt * gofumpt * updates Co-authored-by: yihuang <[email protected]> Co-authored-by: Julien Robert <[email protected]> Co-authored-by: marbar3778 <[email protected]>
JeancarloBarrios
pushed a commit
to agoric-labs/cosmos-sdk
that referenced
this pull request
Sep 28, 2024
…3459) (cosmos#13462) * fix: state listener could observe discarded writes (cosmos#13459) * fix: state listener could observe uncommitted writes Closes: cosmos#13457 don't pass listeners to nested cached store, only the most inner layer's cache writes should be observed. * Update CHANGELOG.md * add unit test * rename Co-authored-by: Marko <[email protected]> (cherry picked from commit bb54c59) # Conflicts: # CHANGELOG.md * Update CHANGELOG.md Co-authored-by: yihuang <[email protected]> Co-authored-by: Julien Robert <[email protected]>
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
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.
Description
Closes: #13457
don't pass listeners to nested cache store,
only the most inner layer's cache writes should be observed.
Author Checklist
All items are required. Please add a note to the item if the item is not applicable and
please add links to any relevant follow up issues.
I have...
!
to the type prefix if API or client breaking changeCHANGELOG.md
Reviewers Checklist
All items are required. Please add a note if the item is not applicable and please add
your handle next to the items reviewed if you only reviewed selected items.
I have...
!
in the type prefix if API or client breaking change