Java Mailing List Archive

http://www.gg3721.com/

Home » Hibernate Issues List »

[hibernate-issues] [Hibernate-JIRA] Created: (HHH-5013) the
previous select query should not to hold locks in
TypeParameterTest#testSave

Anupam M (JIRA)

2010-03-16

Replies: Find Java Web Hosting

Author LoginPost Reply
the previous select query should not to hold locks in TypeParameterTest#testSave
--------------------------------------------------------------------------------

          Key: HHH-5013
          URL: http://opensource.atlassian.com/projects/hibernate/browse/HHH-5013
        Project: Hibernate Core
      Issue Type: Bug
      Components: testsuite
  Affects Versions: 3.5.0-CR-2
       Reporter: Strong Liu
       Assignee: Strong Liu
        Fix For: 3.5.0.Next


Hi Strong Liu,

I'm getting "lock timeout" in the org.hibernate.test.typeparameters.TypeParameterTest testSave test. Within testSave and testLoading a session and transaction is initiated to create a Widget object, persist it and then closed. A second session is started with a transaction to query the Widget attributes followed by a call to deleteData while this parent session holds physical database locks.

Within the deleteData method a new session with its own transaction is created which waits for locks held by the parent resulting in a deadlock.

I presume the test is expecting the previous select query not to hold locks?

--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://opensource.atlassian.com/projects/hibernate/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

   
_______________________________________________
hibernate-issues mailing list
hibernate-issues@(protected)
https://lists.jboss.org/mailman/listinfo/hibernate-issues
©2008 gg3721.com - Jax Systems, LLC, U.S.A.