database session closed before script steps finished

Bug #1043372 reported by Ralf Claussnitzer
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Goobi.Production
Triaged
High
Unassigned
1.8
Triaged
High
Unassigned

Bug Description

Automatic steps crash if they access the database when the runtime of external scripts exceeds the overall JSP session lifetime.

When executing external scripts from a work-flow step, each script execution is handled by an individual thread. Unfortunately, the database session is bound to the Tomcat thread used to handle a user request. A database session is kept open until the response has been generated and is then forcefully disconnected (by a HibernateSessionFilter class).

If the step involves the execution of external scripts the overall runtime might exceed the lifetime of the Tomcat web request initiated session. After the web session has been completed, the hibernate session is disconnected and thus, doesn't allow for writing database operations anymore.

Revision history for this message
Ralf Claussnitzer (ralf-claussnitzer-deactivatedaccount) wrote :
Revision history for this message
Ralf Claussnitzer (ralf-claussnitzer-deactivatedaccount) wrote :

Fixing this incorporates major changes to Hibernate usage across the whole project. Therefore, fixing is postponed until intranda has finished the code merge.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.