Mantis - Resin
Viewing Issue Advanced Details
5978 major random 02-12-16 10:26 05-09-16 11:32
Mathias Lagerwall  
ferg  
normal  
closed 4.0.47  
fixed  
none    
none 4.0.49  
0005978: Error in session database
We are using Resin in a clustering setup. Two instances serves the customers. The following error message occurs from time to time in the log and it seems as the session database is locked for quite some time for some customers when we see it. It is so bad that we are forced to restart the instance.

java.lang.IllegalMonitorStateException
  at java.util.concurrent.locks.ReentrantReadWriteLock$Sync.tryRelease(ReentrantReadWriteLock.java:371)
  at java.util.concurrent.locks.AbstractQueuedSynchronizer.release(AbstractQueuedSynchronizer.java:1261)
  at java.util.concurrent.locks.ReentrantReadWriteLock$WriteLock.unlock(ReentrantReadWriteLock.java:1131)
  at com.caucho.db.index.BTree.removeWrite(BTree.java:900)
  at com.caucho.db.index.BTree.remove(BTree.java:774)
  at com.caucho.db.table.BinaryColumn.deleteIndex(BinaryColumn.java:418)
  at com.caucho.db.table.Table.delete(Table.java:1154)
  at com.caucho.db.table.TableIterator.delete(TableIterator.java:512)
  at com.caucho.db.sql.DeleteQuery.execute(DeleteQuery.java:80)
  at com.caucho.db.jdbc.PreparedStatementImpl.execute(PreparedStatementImpl.java:367)
  at com.caucho.db.jdbc.PreparedStatementImpl.executeUpdate(PreparedStatementImpl.java:337)
  at com.caucho.server.distcache.MnodeStore.remove(MnodeStore.java:840)
  at com.caucho.server.distcache.CacheDataBackingImpl.removeData(CacheDataBackingImpl.java:501)
  at com.caucho.server.distcache.CacheDataBackingImpl.access$600(CacheDataBackingImpl.java:60)
  at com.caucho.server.distcache.CacheDataBackingImpl$ReaperListener.removeExpiredData(CacheDataBackingImpl.java:614)
  at com.caucho.server.distcache.CacheDataBackingImpl$ReaperListener.handleAlarm(CacheDataBackingImpl.java:570)
  at com.caucho.util.Alarm.handleAlarm(Alarm.java:523)
  at com.caucho.util.Alarm.run(Alarm.java:495)
  at com.caucho.env.thread2.ResinThread2.runTasks(ResinThread2.java:173)
  at com.caucho.env.thread2.ResinThread2.run(ResinThread2.java:118)

There are no notes attached to this issue.