Atomikos Forum

Atomikos fails in Initialization

when we simulate a server crash (kill -9 on our java process), it can occur sometimes that Atomikos 3.5.5 can not startup later on.
It fails with:
09/08/07 14:42:31
09/08/07 14:42:31     at
09/08/07 14:42:31     at
09/08/07 14:42:31     at com.atomikos.persistence.imp.FileLogStream.recover(
09/08/07 14:42:31     at com.atomikos.persistence.imp.StreamObjectLog.init(
09/08/07 14:42:31     at com.atomikos.persistence.imp.StateRecoveryManagerImp.init(
09/08/07 14:42:31     at com.atomikos.icatch.imp.TransactionServiceImp.init(
09/08/07 14:42:31     at com.atomikos.icatch.imp.BaseTransactionManager.init(
09/08/07 14:42:31     at com.atomikos.icatch.standalone.StandAloneTransactionManager.init(
09/08/07 14:42:31     at com.atomikos.icatch.standalone.UserTransactionServiceImp.init(
09/08/07 14:42:31     at com.atomikos.icatch.config.UserTransactionServiceImp.init(

Seeing the code com.atomikos.persistence.imp.FileLogStream.recover()
you deal with the case that the file may be corrupt with catching a EOFException that you ignore.

We modified your code to also ignore the StreamCorruptedException.
I suppose that this are not all possible cases that can occur after a crash if trying to recover the log files.

If you need the tmXXX.log that was corrupt, I can provide a copy.

Thanks a lot.
Tobias Stolz Send private email
Friday, August 07, 2009

Created a case for this.

Guy Pardon Send private email
Sunday, August 09, 2009

This topic is archived. No further replies will be accepted.

Other recent topics Other recent topics