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

go/consensus/tendermint: Sync state database before discarding versions #3173

Merged
merged 2 commits into from
Aug 6, 2020

Conversation

kostko
Copy link
Member

@kostko kostko commented Aug 6, 2020

Otherwise a crash can cause the state database to be rolled back to a version
that has already been discarded from Tendermint's state stores which would
prevent replay on restart.

Discovered during long-term tests.

@kostko kostko added c:consensus/tendermint Category: Tendermint-based consensus c:bug Category: bug labels Aug 6, 2020
Otherwise a crash can cause the state database to be rolled back to a version
that has already been discarded from Tendermint's state stores which would
prevent replay on restart.

Discovered during long-term tests.
@codecov
Copy link

codecov bot commented Aug 6, 2020

Codecov Report

Merging #3173 into master will increase coverage by 0.10%.
The diff coverage is 33.33%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master    #3173      +/-   ##
==========================================
+ Coverage   68.70%   68.81%   +0.10%     
==========================================
  Files         385      385              
  Lines       37945    37951       +6     
==========================================
+ Hits        26072    26115      +43     
+ Misses       8575     8536      -39     
- Partials     3298     3300       +2     
Impacted Files Coverage Δ
go/consensus/tendermint/abci/prune.go 78.57% <0.00%> (-1.64%) ⬇️
go/storage/mkvs/db/api/api.go 57.77% <0.00%> (-2.69%) ⬇️
go/storage/mkvs/db/badger/badger.go 70.43% <100.00%> (+0.12%) ⬆️
go/worker/common/p2p/error/error.go 71.42% <0.00%> (-28.58%) ⬇️
go/consensus/tendermint/api/errors.go 86.66% <0.00%> (-13.34%) ⬇️
go/consensus/tendermint/full/services.go 78.90% <0.00%> (-9.38%) ⬇️
go/consensus/tendermint/abci/state/state.go 61.53% <0.00%> (-7.70%) ⬇️
go/consensus/tendermint/epochtime/epochtime.go 78.78% <0.00%> (-7.58%) ⬇️
.../consensus/tendermint/apps/epochtime_mock/state.go 74.46% <0.00%> (-4.26%) ⬇️
go/keymanager/client/client.go 82.64% <0.00%> (-4.14%) ⬇️
... and 42 more

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 3e191ea...0e24909. Read the comment docs.

@kostko kostko merged commit 285f81b into master Aug 6, 2020
@kostko kostko deleted the kostko/fix/tm-prune-sync branch August 6, 2020 08:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
c:bug Category: bug c:consensus/tendermint Category: Tendermint-based consensus
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants