Issue Details (XML | Word | Printable)

Key: APF-485
Type: Bug Bug
Status: Resolved Resolved
Resolution: Fixed
Priority: Minor Minor
Assignee: Matt Raible
Reporter: David Bernard
Votes: 0
Watchers: 0
Operations

If you were logged in you would be able to see more operations.
AppFuse

db-unit run from maven does not disconnect at end of load - scripts to shutdown database will stall

Created: 29/Oct/06 03:58 PM   Updated: 01/Mar/07 10:39 AM   Resolved: 20/Dec/06 08:54 PM
Component/s: Build, Test, or Deploy Process
Affects Version/s: 2.0-M2
Fix Version/s: 2.0-M2

Environment:
Postgresql 8.1
Fedora Core 5/Gentoo/Mac OS X 10.4


 Description  « Hide
In my custom set up, the database server is shutdown after the dao tests have run using a script that called the postgres command "pg_ctl stop".

Initially I was using maven to call the antrun plugin to run dbunit to load the sample data. This worked fine.

After I had changed to using the maven dbunit plugin, the database stop script hung.

My conclusion is that dbunit, run from the maven plug in, is not closing its database connection.

My solutions was to use:

pg_ctl stop -m f

This will shutdown the database without waiting for all clients to disconnect, forcing a role back for any currently open transactions.







No related commits found.