Browse Source

consensus: flush wal on stop (#3297)

Should fix #3295
Also partial fix of #3043
pull/3305/head
Ethan Buchman 5 years ago
committed by Anton Kaliaev
parent
commit
dc6567c677
3 changed files with 4 additions and 1 deletions
  1. +1
    -1
      CHANGELOG.md
  2. +2
    -0
      CHANGELOG_PENDING.md
  3. +1
    -0
      consensus/wal.go

+ 1
- 1
CHANGELOG.md View File

@ -89,7 +89,7 @@ Special thanks to external contributors on this release:
- [p2p] [\#3247](https://github.com/tendermint/tendermint/issues/3247) Fix panic in SeedMode when calling FlushStop and OnStop
concurrently
- [p2p] [\#3040](https://github.com/tendermint/tendermint/issues/3040) Fix MITM on secret connection by checking low-order points
- [privval] [\#3258](https://github.com/tendermint/tendermint/issues/3258) Fix race between sign requests and ping requests in socket
- [privval] [\#3258](https://github.com/tendermint/tendermint/issues/3258) Fix race between sign requests and ping requests in socket that was causing messages to be corrupted
## v0.29.1


+ 2
- 0
CHANGELOG_PENDING.md View File

@ -21,3 +21,5 @@ Special thanks to external contributors on this release:
### IMPROVEMENTS:
### BUG FIXES:
- [consensus] \#3297 Flush WAL on stop to prevent data corruption during
graceful shutdown

+ 1
- 0
consensus/wal.go View File

@ -116,6 +116,7 @@ func (wal *baseWAL) OnStart() error {
// Use Wait() to ensure it's finished shutting down
// before cleaning up files.
func (wal *baseWAL) OnStop() {
wal.group.Flush()
wal.group.Stop()
wal.group.Close()
}


Loading…
Cancel
Save