Persistent database recovery can be necessary in the case of a system failure. The eXtremeDB runtime uses the transaction log file to perform recovery automatically when Database method
open()
is called.Note that, for automatic recovery, it is important that either the
RedoLog
(the default) orUndoLog
log file type was active in the process that was updating the database at the moment of the system failure. In other words, if the log file type wasNoLog
in the crashed process, recovery will not be possible. The log type is specified inDatabase.Parameters.logType
. For example:Database.Parameters params = new Database.Parameters(); ... // Set log file type params.logType = Database.LogType.UndoLog;No additional API or action by the application is necessary for automatic recovery.