Skip to content
This repository was archived by the owner on Nov 15, 2023. It is now read-only.

Revert storage cache optimization #8535

Merged
merged 3 commits into from
Apr 6, 2021
Merged

Revert storage cache optimization #8535

merged 3 commits into from
Apr 6, 2021

Conversation

arkpar
Copy link
Member

@arkpar arkpar commented Apr 6, 2021

This reverts optimization introduced in #8518, leaving the actual fix.
The optimization proved to be unsound, doe to the fact that retracted does not really reflect cache "reorg" which should happen even though chain reorg does not.

To properly account for cumulus case, a different implementation of the cache system would be needed eventually.

@arkpar arkpar added A0-please_review Pull request needs code review. B0-silent Changes should not be mentioned in any release notes C1-low PR touches the given topic and has a low impact on builders. D3-trivial 🧸 PR contains trivial changes in a runtime directory that do not require an audit labels Apr 6, 2021
@arkpar arkpar requested a review from bkchr April 6, 2021 09:38
@arkpar arkpar changed the title A fix storage cache Revert storage cache optimization Apr 6, 2021
@arkpar arkpar force-pushed the a-fix-storage-cache branch from 7c2eaac to ee3d20e Compare April 6, 2021 09:43
@bkchr bkchr merged commit 1a6f537 into master Apr 6, 2021
@bkchr bkchr deleted the a-fix-storage-cache branch April 6, 2021 11:04
bkchr pushed a commit that referenced this pull request Apr 6, 2021
* Revert "Fixes `storage_hash` caching issue and enables better caching for Cumulus (#8518)"

This reverts commit 85eef08.

* Fix reverting storage_hash

* Restore test
hirschenberger pushed a commit to hirschenberger/substrate that referenced this pull request Apr 14, 2021
* Revert "Fixes `storage_hash` caching issue and enables better caching for Cumulus (paritytech#8518)"

This reverts commit 85eef08.

* Fix reverting storage_hash

* Restore test
KalitaAlexey pushed a commit to KalitaAlexey/substrate that referenced this pull request Jul 9, 2021
* Revert "Fixes `storage_hash` caching issue and enables better caching for Cumulus (paritytech#8518)"

This reverts commit 85eef08.

* Fix reverting storage_hash

* Restore test
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
A0-please_review Pull request needs code review. B0-silent Changes should not be mentioned in any release notes C1-low PR touches the given topic and has a low impact on builders. D3-trivial 🧸 PR contains trivial changes in a runtime directory that do not require an audit
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants