lightstreams-network / lightchain

Fast proof-of-authority blockchain based on go-ethereum and tendermint
https://lightstreams.network
GNU General Public License v3.0
55 stars 16 forks source link

Stopping tendermint node doesn't release a lock #94

Open EnchanterIO opened 5 years ago

EnchanterIO commented 5 years ago

Steps to reproduce

n.Start()
n.Stop()
n.Start()

Error initializing DB: resource temporarily unavailable.

Stopping node, which attempts to stop ethereum and tendermint services, doesn't release the lock from tendermint's Level DB. Only stopping the entire unix process does.

Due to this issue we can't write some tracing tests that require a full node restart within the same unix process.

ggarri commented 5 years ago

Fixed on Tendermint v0.31.0. Therefore this task will be closed once this other issue is completed https://github.com/lightstreams-network/lightchain/issues/161

EnchanterIO commented 5 years ago

What particular Tendermint task is fixing this issue @ggarri?

It's still happening:

INFO [05-30|10:58:02.872] Starting consensus engine...             engine=node
Node resulted in panic: Error initializing DB: resource temporarily unavailable. 
EnchanterIO commented 5 years ago

Blocked meanwhile Tendermint fixes it.