Mantis - Resin
Viewing Issue Advanced Details
4919 minor always 01-13-12 12:05 02-16-12 14:06
ferg  
ferg  
normal  
closed  
fixed  
none    
none 4.0.25  
0004919: recovery from session database corruption
(rep by Keith Fetterman)

After a restart caused by file descriptors running out, the corrupted database produced messages like:

> [2012-01-13 09:42:26.306] {http://*:8082-2763} [^] WARNING com.caucho.server.session.SessionImpl SessionImpl[aaa3VUfkE91kD4YdDkytt,]: can't serialize session
> java.lang.IllegalStateException: block Block[Table[data:6],205a006] is not an index code=5
> at com.caucho.db.block.Block.validateIsIndex(Block.java:151)
> at com.caucho.db.index.BTree.validateIndex(BTree.java:1729)
> at com.caucho.db.index.BTree.lookup(BTree.java:197)

The validation code on startup needs to check this situation more completely.

There are no notes attached to this issue.