Issue Details (XML | Word | Printable)

Key: TEST-22
Type: Bug Bug
Status: Open Open
Priority: Major Major
Assignee: Unassigned
Reporter: Andy Jefferson
Votes: 0
Watchers: 0
Operations

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

jdo/identity test suite has some places where the PM is not closed

Created: 19/Feb/14 09:33 AM   Updated: 19/Feb/14 09:33 AM
Component/s: None
Affects Version/s: None
Fix Version/s: None


 Description  « Hide
If you set the persistence property
datanucleus.connection.singleConnectionPerExecutionContext=true
and run "identity" test suite, it will get so far and then hang. This is because with this property set if a PM grabs a connection it will hang on to it until the PM is closed. If, for some reason, the developer doesn't close a PM the connection is left hanging. Eventually the application will run out of connections.

The tests that leave connections open need identifying and fixing. As a way of doing this you can set property
datanucleus.enableStatistics=true
and then print out the number of active connections for a PMF via
((JDOPersistenceManagerFactory)pmf).getNucleusContext().getStatistics().getConnectionActiveCurrent();

Sort Order: Ascending order - Click to sort in descending order
There are no comments yet on this issue.