andrewjstone / rafter

An Erlang library application which implements the Raft consensus protocol
269 stars 32 forks source link

Function clause errors shouldn't crash ets backend #14

Closed andrewjstone closed 10 years ago

andrewjstone commented 10 years ago

We can't just crash as we do currently, because there is no way to 'uncommit' a committed entry without truncating the log manually.Therefore we will just crash again on restart.

Current proposal is to log and return an error when it happens and continue without affecting the state machine.