Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 335666

Summary: Jubula termination when using h2-database sometimes lead to multiple exceptions during shutdown process
Product: [Technology] Jubula Reporter: Markus Tiede <markus.tiede>
Component: CoreAssignee: Zeb Ford-Reitz <zeb.ford-reitz>
Status: CLOSED FIXED QA Contact: Tim Winselmann <tim.winselmann>
Severity: major    
Priority: P3 CC: Achim.Loerke
Version: unspecified   
Target Milestone: ---   
Hardware: All   
OS: All   
Whiteboard:
Attachments:
Description Flags
H2 database shutdown exceptions none

Description Markus Tiede CLA 2011-01-28 04:58:16 EST
The termination of Jubula sometimes lead to multiple exceptions during shutdown process when using the h2-database (see the attached logs for further details).
Comment 1 Markus Tiede CLA 2011-01-28 04:59:03 EST
Created attachment 187819 [details]
H2 database shutdown exceptions
Comment 2 Achim Loerke CLA 2011-03-08 04:23:57 EST
Check for a racing condition between bundle stop and app shutdown.
Comment 3 Zeb Ford-Reitz CLA 2011-03-09 08:16:15 EST
fixed with http://git.eclipse.org/c/jubula/org.eclipse.jubula.core.git/commit/?id=d156e1b30a4191c05540f62c99176b634f6c5d56

H2's "CLOSE_ON_EXIT" shutdown hook was consistently winning out over Jubula's "Close Session Factory" shutdown hook, so we now make use of H2's "DB_CLOSE_ON_EXIT=FALSE" option in order to prevent the racing condition.
Comment 4 Markus Tiede CLA 2011-03-14 10:12:35 EDT
Log files do not contain any shutdown problems with the h2-db any more.