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

Write-Through Inter-Block Cache #4748

Merged
merged 80 commits into from
Sep 4, 2019
Merged
Show file tree
Hide file tree
Changes from 73 commits
Commits
Show all changes
80 commits
Select commit Hold shift + click to select a range
56bbc88
Update BaseApp state type
alexanderbez Jul 19, 2019
5578043
Implement inter block caching layer
alexanderbez Jul 22, 2019
81f7dc1
Update the cache multi-store to use new layer
alexanderbez Jul 22, 2019
2bc2ec2
Fix constructor
alexanderbez Jul 22, 2019
580119f
Add unit tests
alexanderbez Jul 22, 2019
e7fed50
Set cache on read during cache miss
alexanderbez Jul 22, 2019
c283670
Reset BaseApp changes
alexanderbez Jul 22, 2019
d4d5605
gofmt
alexanderbez Jul 22, 2019
5e4f144
Merge branch 'master' into bez/1947-inter-block-cache
alexanderbez Jul 22, 2019
799c585
Update cache multi-store to use cache mngr as an arg
alexanderbez Jul 23, 2019
b1945e4
Update multi-store
alexanderbez Jul 23, 2019
e0f6b09
Merge branch 'master' into bez/1947-inter-block-cache
alexanderbez Aug 14, 2019
04c3bac
fmt and godoc cleanup
alexanderbez Aug 14, 2019
fa06e97
Merge branch 'master' into bez/1947-inter-block-cache
alexanderbez Aug 15, 2019
3b12fe5
Merge branch 'master' into bez/1947-inter-block-cache
alexanderbez Aug 15, 2019
c1d84fa
Restructure baseapp
alexanderbez Aug 15, 2019
0d6a3ed
More BaseApp cleanup and restructuring
alexanderbez Aug 16, 2019
6430ca0
Remove cache manager from multi-store
alexanderbez Aug 19, 2019
0d89c5e
Implement SetInterBlockCache option on BaseApp
alexanderbez Aug 19, 2019
f8fc57f
More BaseApp godoc cleanup and support for inter-block cache
alexanderbez Aug 19, 2019
5bc9f73
Revert changes in new cache multi-store
alexanderbez Aug 19, 2019
cc01e56
Fix build
alexanderbez Aug 19, 2019
23eecc7
Add KVStore cache manager to Context
alexanderbez Aug 19, 2019
ce59123
Update Context KVStore and TransientStore to use KVStore cache manager
alexanderbez Aug 19, 2019
2765b32
Update setDeliverState godoc
alexanderbez Aug 19, 2019
24aa18a
Support cache size as uint
alexanderbez Aug 19, 2019
4793428
Update BaseApp to call WithInterBlockCache
alexanderbez Aug 21, 2019
e8d35f9
Add godoc to WithInterBlockCache
alexanderbez Aug 21, 2019
d93ab8c
Linting
alexanderbez Aug 21, 2019
c5cb001
Update simulation test suite to use inter-block cache
alexanderbez Aug 21, 2019
7cebc15
Rename to KVStoreCacheManager
alexanderbez Aug 21, 2019
5d94801
Fix build
alexanderbez Aug 21, 2019
1c09227
Implement and call inter-block cache Reset
alexanderbez Aug 21, 2019
dc21419
Only generate secp256k1 keys in simulation
alexanderbez Aug 23, 2019
528f678
Update bank aliases
alexanderbez Aug 23, 2019
cebb7e7
Update inter-block cache APIs
alexanderbez Aug 23, 2019
a635ca5
Don't return KVStore
alexanderbez Aug 23, 2019
4ee169b
Remove inter-block cache from Context
alexanderbez Aug 26, 2019
a6961c0
Cleanup IAVL store + return CommitKVStore instead of CommitStore
alexanderbez Aug 26, 2019
d49ffa7
Update root multi store
alexanderbez Aug 26, 2019
0f5d816
Remove context call in helpers
alexanderbez Aug 26, 2019
00d8875
Update BaseApp
alexanderbez Aug 26, 2019
5ba5910
Small godoc update
alexanderbez Aug 26, 2019
8b114bc
Refactor inter-block caching to use CommitKVStore
alexanderbez Aug 26, 2019
f6fd73d
cleanup
alexanderbez Aug 26, 2019
9723bab
Fix build
alexanderbez Aug 26, 2019
8561ef4
Move cache to store package
alexanderbez Aug 27, 2019
2488fe5
Update mock
alexanderbez Aug 27, 2019
44a7443
Create NewCommitKVStoreCacheManager alias
alexanderbez Aug 27, 2019
a251163
Fix store build
alexanderbez Aug 27, 2019
80d1964
Update sim tests app construction
alexanderbez Aug 27, 2019
fadce2b
Minor doc updates
alexanderbez Aug 27, 2019
2cebd07
Remove app bench test
alexanderbez Aug 27, 2019
63b1750
Update state section in baseapp docs
alexanderbez Aug 27, 2019
118c1dd
Add chagelog entry
alexanderbez Aug 28, 2019
22bb2c0
Merge branch 'master' into bez/1947-inter-block-cache
alexanderbez Aug 28, 2019
1ef4985
Update baseapp/abci.go
alexanderbez Aug 28, 2019
5e2ffa1
Update baseapp/abci.go
alexanderbez Aug 28, 2019
4f3f245
Update baseapp/abci.go
alexanderbez Aug 28, 2019
834ba3f
Update baseapp/baseapp.go
alexanderbez Aug 28, 2019
9b7c8f7
Update baseapp/baseapp.go
alexanderbez Aug 28, 2019
74b5e84
Update baseapp/baseapp.go
alexanderbez Aug 28, 2019
a85023b
Merge branch 'master' into bez/1947-inter-block-cache
alexanderbez Aug 28, 2019
c676e64
Revert x/mock/app.go
alexanderbez Aug 28, 2019
0035bd3
Cleanup TestStoreCache
alexanderbez Aug 28, 2019
3d923ef
Move splitPath to abci.go
alexanderbez Aug 28, 2019
68278f0
Merge branch 'master' into bez/1947-inter-block-cache
alexanderbez Sep 2, 2019
83f5973
Add inter-block-cache flag
alexanderbez Sep 2, 2019
4ca6f73
Update baseapp/abci.go
alexanderbez Sep 2, 2019
d09e8ff
Update baseapp/abci.go
alexanderbez Sep 2, 2019
0df9ad5
Update docs/core/baseapp.md
alexanderbez Sep 2, 2019
ad08260
Modify docs
alexanderbez Sep 2, 2019
1d22b53
Update docs/core/baseapp.md
alexanderbez Sep 2, 2019
6c0398f
Add note on message state transitions
alexanderbez Sep 3, 2019
da0443a
Merge branch 'bez/1947-inter-block-cache' of github.com:cosmos/cosmos…
alexanderbez Sep 3, 2019
9db0514
Add assertions for key/value in cache layer
alexanderbez Sep 3, 2019
1b3d2df
Store string key in a var
alexanderbez Sep 3, 2019
3859dc5
Merge branch 'master' into bez/1947-inter-block-cache
alexanderbez Sep 4, 2019
96687c4
Merge branch 'master' into bez/1947-inter-block-cache
alexanderbez Sep 4, 2019
09c5cd6
Add a API breaking changelog entry
alexanderbez Sep 4, 2019
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,10 @@ longer panics if the store to load contains substores that we didn't explicitly
* (simulation) [\#4906](https://github.com/cosmos/cosmos-sdk/issues/4906) Add simulation `Config` struct that wraps simulation flags
* (store) [\#4792](https://github.com/cosmos/cosmos-sdk/issues/4792) panic on non-registered store
* (types) [\#4821](https://github.com/cosmos/cosmos-sdk/issues/4821) types/errors package added with support for stacktraces. It is meant as a more feature-rich replacement for sdk.Errors in the mid-term.
* (store) [\#1947](https://github.com/cosmos/cosmos-sdk/issues/1947) Implement inter-block (persistent)
caching through `CommitKVStoreCacheManager`. Any application wishing to utilize an inter-block cache
must set it in their app via a `BaseApp` option. The `BaseApp` docs have been drastically improved
to detail this new feature and how state transitions occur.

### Bug Fixes

Expand Down
Loading