PetrGlad/python-prevayler — Issue #11: New Sentry logic fails if replay log hits EOFError
Author: mbucc
Created: 2011-10-15 12:49:00+00:00
State: open

1. start prevalyer
2. log a transaction (Sentry.serialId = 1)
3. restart prevalyer, hit EOF error (Log.serialId incremented b/f exception thrown)
4. log a transaction (Sentry.serialId = 3)
5. restart prevalyer (BOOM! assertion failure)

In Log.loadInitState(), don't increment serialId until after transaction loads successfully from pickle file.