Skip to content

blockchain: non-deterministic test fail #3400

@ebuchman

Description

@ebuchman
=== RUN   TestBadBlockStopsPeer
...
I[2019-03-10|09:19:32.335] Executed block                               height=146 validTxs=10 invalidTxs=0
I[2019-03-10|09:19:32.335] Committed state                              height=146 txs=10 appHash=
I[2019-03-10|09:19:32.336] Executed block                               height=147 validTxs=10 invalidTxs=0
I[2019-03-10|09:19:32.336] Committed state                              height=147 txs=10 appHash=
I[2019-03-10|09:19:32.339] Starting P2P Switch                          switch=0 impl="P2P Switch"
panic: Panicked on a Sanity Check: BlockStore can only save contiguous blocks. Wanted 149, got 147

goroutine 1251 [running]:
github.com/tendermint/tendermint/libs/common.PanicSanity(0xecf420, 0xc00130ebf0)
	/go/src/github.com/tendermint/tendermint/libs/common/errors.go:224 +0xc6
github.com/tendermint/tendermint/blockchain.(*BlockStore).SaveBlock(0xc000524840, 0xc0012cd680, 0xc000bacd20, 0xc00017c680)
	/go/src/github.com/tendermint/tendermint/blockchain/store.go:151 +0x807
github.com/tendermint/tendermint/blockchain.(*BlockchainReactor).poolRoutine(0xc0013abba0)
	/go/src/github.com/tendermint/tendermint/blockchain/reactor.go:332 +0xfb0
created by github.com/tendermint/tendermint/blockchain.(*BlockchainReactor).OnStart
	/go/src/github.com/tendermint/tendermint/blockchain/reactor.go:117 +0x129
FAIL	github.com/tendermint/tendermint/blockchain	7.102s
Exited with code 1

Seen in https://circleci.com/gh/tendermint/tendermint/49647#tests/containers/2

build_49647_step_105_container_2.txt.zip

Metadata

Metadata

Assignees

No one assigned

    Labels

    C:syncComponent: Fast Sync, State SyncT:bugType Bug (Confirmed)T:testType: Tests that need love

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions