-
Notifications
You must be signed in to change notification settings - Fork 4.2k
refactor!: abstractions for snapshot and pruning; snapshot intervals eventually pruned; unit tests #11496
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
Merged
alexanderbez
merged 66 commits into
cosmos:master
from
osmosis-labs:roman/upstream/snapshot-pruning-refactor
Apr 21, 2022
Merged
refactor!: abstractions for snapshot and pruning; snapshot intervals eventually pruned; unit tests #11496
Changes from 64 commits
Commits
Show all changes
66 commits
Select commit
Hold shift + click to select a range
8261885
refactor: abstractions for snapshot and pruning; snapshot intervals a…
p0mvn 271314a
fix GetBlockRetentionHeight
p0mvn 640c7a6
avoid snapshots/store implementing Store interface
p0mvn bc55f11
always use testutil.GetTempDir for creating a temp dir in tests
p0mvn 5613d2a
use os.MkdirTemp for creating temp dir
p0mvn a0d29c6
changelog
p0mvn d7449dd
rename pruningTypes to pruningtypes
p0mvn aef77b5
rename snapshotTypes to snapshotypes
p0mvn a7c0311
update pruning default with correct values, update pruning everything…
p0mvn d66ed29
fix pruning options unit test to reflect the updated default value
p0mvn d12d255
address functional and security related comments
p0mvn 8e420a7
storetypes
p0mvn 4e66ff3
snapshottypes
p0mvn c314381
restore import order in abci_test.go
p0mvn fff18ad
import order in basepp_test.go
p0mvn 99c303a
import order in baseapp/options.go
p0mvn 64b9f35
import order
p0mvn 55bac3b
make format on changed files
p0mvn a54fd34
add unit test for NewPruningOptionsFromString
p0mvn 1751e81
add TestLoadPruningHeights_PruneNothing
p0mvn ecde568
address previousHeight == 0 guard and nits
p0mvn 17bcbbd
fix snapshot height must be positive check
p0mvn f6462e1
godoc for init
p0mvn 20e8651
return 0 if negative previousVersion is given to the pruning manager.…
p0mvn d915e89
remove GetCommitKVStores
p0mvn 2ec8fad
remove type aliases from store types
p0mvn 950ab26
revert pruning options pointer
p0mvn 1c7b5a9
revert snapshot options pointer
p0mvn fdf3515
refactor: syncronize pruning manager (#187)
p0mvn d9eb77c
fix rebase problem in tests
p0mvn cd5ed77
increase code coverage by covering panics in pruning manager unit tests
p0mvn 1a62435
increase coverage in pruning options
p0mvn 9400186
NegativeHeightsError implementation and format
p0mvn 94739dc
Update pruning/README.md
p0mvn 631a756
update order of declarations in pruning manager
p0mvn ffa4d6d
Merge branch 'roman/upstream/snapshot-pruning-refactor' of github.com…
p0mvn 5a504af
new goroutine is handled by SnapshotIfApplicable caller
p0mvn 2893b32
synchronous SnapshotIfApplicable
p0mvn 25b4bd1
return a copy of pruneHeights in GetFlushAndResetPruningHeights
p0mvn 7f610e1
godoc for pruning manager
p0mvn 9c92dc4
Update error message in baseapp/baseapp.go
p0mvn 8ef356b
sdk import in util_test.go
p0mvn c482cd3
Apply suggestions from code review in pruning/README.md
p0mvn 091061c
Apply more style suggestions from code review
p0mvn f2ea6b0
remove junk test files
p0mvn 611560f
style fix in simapp/simd/cmd/root.go
p0mvn 678ed17
remove unused import in baseapp
p0mvn a6c861a
Merge branch 'master' into roman/upstream/snapshot-pruning-refactor
p0mvn dab1ba8
resolve merge conflict
p0mvn d40790c
update snapshots/README.md
p0mvn 54068ce
Update SnapshotIntervalOff comment in snapshots/types/options.go
p0mvn 70c2043
Update pruneSnapshotHeightsKey pruning/manager.go
p0mvn f3b5485
update SetSnapshotInterval comment
p0mvn 2023fa3
remove snapshot store type
p0mvn 823971f
remove pruning and snapshot wrappers from store types
p0mvn 73b75ee
fix HandleHeight comment in pruning manager
p0mvn 986f6ff
Merge branch 'master' into roman/upstream/snapshot-pruning-refactor
p0mvn 19669c4
Merge branch 'master' into roman/upstream/snapshot-pruning-refactor
p0mvn bbe9d5e
snapshot happens in a separate goroutine
p0mvn 073b664
Merge branch 'master' into roman/upstream/snapshot-pruning-refactor
p0mvn 2dc26e5
set snapshot interval on multistore in baseapp instead of snapshot ma…
p0mvn d6a3569
Merge branch 'master' into roman/upstream/snapshot-pruning-refactor
p0mvn 8eee2f7
fix snapshot manager unit tests
p0mvn 5d85f99
Merge branch 'master' into roman/upstream/snapshot-pruning-refactor
p0mvn eb5a3b3
Merge branch 'master' into roman/upstream/snapshot-pruning-refactor
alexanderbez e53691a
Update CHANGELOG.md
p0mvn File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
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
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
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
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
Oops, something went wrong.
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.
Uh oh!
There was an error while loading. Please reload this page.