cayenne-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Savva Kolbachev (JIRA)" <j...@apache.org>
Subject [jira] [Updated] (CAY-2120) DataContextIteratedQueryIT test failures
Date Thu, 06 Oct 2016 19:31:20 GMT

     [ https://issues.apache.org/jira/browse/CAY-2120?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Savva Kolbachev updated CAY-2120:
---------------------------------
    Description: 
DataContextIteratedQueryIT.testPerformIteratedQuery_resolve:207
DataContextIteratedQueryIT.testPerformIteratedQuery_CommitWithinIterator:227

It is probably related to the new transaction management code in iterators. Could be TX issolation
level.

Here is an output of txt test file. I'm going to investigate it deeper.
-------------------------------------------------------------------------------
Test set: org.apache.cayenne.access.DataContextIteratedQueryIT
-------------------------------------------------------------------------------
Tests run: 8, Failures: 0, Errors: 2, Skipped: 0, Time elapsed: 40.184 sec <<< FAILURE!
- in org.apache.cayenne.access.DataContextIteratedQueryIT
testPerformIteratedQuery_resolve(org.apache.cayenne.access.DataContextIteratedQueryIT)  Time
elapsed: 20.026 sec  <<< ERROR!
org.apache.cayenne.CayenneRuntimeException: [v.4.0.M4-SNAPSHOT Oct 06 2016 19:20:35] Global
exception.
        at org.apache.cayenne.datasource.UnmanagedPoolingDataSource.getConnection(UnmanagedPoolingDataSource.java:351)
        at org.apache.cayenne.datasource.ManagedPoolingDataSource.getConnection(ManagedPoolingDataSource.java:92)
        at org.apache.cayenne.access.DataNode$TransactionDataSource.getConnection(DataNode.java:372)
        at org.apache.cayenne.access.DataNode.performQueries(DataNode.java:286)
        at org.apache.cayenne.access.DataDomainQueryAction.runQuery(DataDomainQueryAction.java:473)
        at org.apache.cayenne.access.DataDomainQueryAction.access$000(DataDomainQueryAction.java:72)
        at org.apache.cayenne.access.DataDomainQueryAction$2.perform(DataDomainQueryAction.java:446)
        at org.apache.cayenne.tx.DefaultTransactionManager.performInTransaction(DefaultTransactionManager.java:87)
        at org.apache.cayenne.tx.DefaultTransactionManager.performInLocalTransaction(DefaultTransactionManager.java:59)
        at org.apache.cayenne.tx.DefaultTransactionManager.performInTransaction(DefaultTransactionManager.java:52)
        at org.apache.cayenne.tx.DefaultTransactionManager.performInTransaction(DefaultTransactionManager.java:40)
        at org.apache.cayenne.access.DataDomainQueryAction.runQueryInTransaction(DataDomainQueryAction.java:443)
        at org.apache.cayenne.access.UnitTestDomainQueryAction.runQueryInTransaction(UnitTestDomainQueryAction.java:53)
        at org.apache.cayenne.access.DataDomainQueryAction.execute(DataDomainQueryAction.java:122)
        at org.apache.cayenne.access.UnitTestDomainQueryAction.execute(UnitTestDomainQueryAction.java:47)
        at org.apache.cayenne.access.UnitTestDomain.onQueryNoFilters(UnitTestDomain.java:63)
        at org.apache.cayenne.access.DataDomain$DataDomainQueryFilterChain.onQuery(DataDomain.java:730)
        at org.apache.cayenne.tx.TransactionFilter.onQuery(TransactionFilter.java:49)
        at org.apache.cayenne.access.DataDomain$DataDomainQueryFilterChain.onQuery(DataDomain.java:730)
        at org.apache.cayenne.access.DataDomain.onQuery(DataDomain.java:551)
        at org.apache.cayenne.util.ObjectContextQueryAction.runQuery(ObjectContextQueryAction.java:384)
        at org.apache.cayenne.util.ObjectContextQueryAction.executePostCache(ObjectContextQueryAction.java:107)
        at org.apache.cayenne.util.ObjectContextQueryAction.execute(ObjectContextQueryAction.java:94)
        at org.apache.cayenne.access.DataContext.onQuery(DataContext.java:989)
        at org.apache.cayenne.access.DataContext.performQuery(DataContext.java:978)
        at org.apache.cayenne.util.RelationshipFault.resolveFromDB(RelationshipFault.java:90)
        at org.apache.cayenne.util.PersistentObjectList.resolvedObjectList(PersistentObjectList.java:301)
        at org.apache.cayenne.util.PersistentObjectList.size(PersistentObjectList.java:268)
        at org.apache.cayenne.access.DataContextIteratedQueryIT.testPerformIteratedQuery_resolve(DataContextIteratedQueryIT.java:207)

testPerformIteratedQuery_CommitWithinIterator(org.apache.cayenne.access.DataContextIteratedQueryIT)
 Time elapsed: 20.027 sec  <<< ERROR!
org.apache.cayenne.CayenneRuntimeException: [v.4.0.M4-SNAPSHOT Oct 06 2016 19:20:35] Commit
Exception
        at org.apache.cayenne.datasource.UnmanagedPoolingDataSource.getConnection(UnmanagedPoolingDataSource.java:351)
        at org.apache.cayenne.datasource.ManagedPoolingDataSource.getConnection(ManagedPoolingDataSource.java:92)
        at org.apache.cayenne.access.DataNode$TransactionDataSource.getConnection(DataNode.java:372)
        at org.apache.cayenne.access.DataNode.performQueries(DataNode.java:286)
        at org.apache.cayenne.access.DataDomainFlushAction.runQueries(DataDomainFlushAction.java:234)
        at org.apache.cayenne.access.DataDomainFlushAction.flush(DataDomainFlushAction.java:155)
        at org.apache.cayenne.access.DataDomain.onSyncFlush(DataDomain.java:629)
        at org.apache.cayenne.access.DataDomain.onSyncNoFilters(DataDomain.java:598)
        at org.apache.cayenne.access.DataDomain$DataDomainSyncFilterChain.onSync(DataDomain.java:746)
        at org.apache.cayenne.tx.TransactionFilter$1.perform(TransactionFilter.java:73)
        at org.apache.cayenne.tx.TransactionFilter$1.perform(TransactionFilter.java:70)
        at org.apache.cayenne.tx.DefaultTransactionManager.performInTransaction(DefaultTransactionManager.java:87)
        at org.apache.cayenne.tx.DefaultTransactionManager.performInLocalTransaction(DefaultTransactionManager.java:59)
        at org.apache.cayenne.tx.DefaultTransactionManager.performInTransaction(DefaultTransactionManager.java:52)
        at org.apache.cayenne.tx.DefaultTransactionManager.performInTransaction(DefaultTransactionManager.java:40)
        at org.apache.cayenne.tx.TransactionFilter.onSync(TransactionFilter.java:70)
        at org.apache.cayenne.access.DataDomain$DataDomainSyncFilterChain.onSync(DataDomain.java:746)
        at org.apache.cayenne.access.DataDomain.onSync(DataDomain.java:585)
        at org.apache.cayenne.access.DataContext.flushToParent(DataContext.java:742)
        at org.apache.cayenne.access.DataContext.commitChanges(DataContext.java:691)
        at org.apache.cayenne.access.DataContextIteratedQueryIT.testPerformIteratedQuery_CommitWithinIterator(DataContextIteratedQueryIT.java:227)


  was:
DataContextIteratedQueryIT.testPerformIteratedQuery_resolve:207
DataContextIteratedQueryIT.testPerformIteratedQuery_CommitWithinIterator:227

It is probably related to the new transaction management code in iterators. Could be TX issolation
level.


> DataContextIteratedQueryIT test failures
> ----------------------------------------
>
>                 Key: CAY-2120
>                 URL: https://issues.apache.org/jira/browse/CAY-2120
>             Project: Cayenne
>          Issue Type: Bug
>    Affects Versions: 4.0.M4
>         Environment: MS SQL Server 2014, Windows 10;
> Docker MySQL 5.7, Ubuntu 16.04;
> Docker Postgres 9.5, Ubuntu 16.04; 
>            Reporter: Savva Kolbachev
>            Assignee: Andrus Adamchik
>
> DataContextIteratedQueryIT.testPerformIteratedQuery_resolve:207
> DataContextIteratedQueryIT.testPerformIteratedQuery_CommitWithinIterator:227
> It is probably related to the new transaction management code in iterators. Could be
TX issolation level.
> Here is an output of txt test file. I'm going to investigate it deeper.
> -------------------------------------------------------------------------------
> Test set: org.apache.cayenne.access.DataContextIteratedQueryIT
> -------------------------------------------------------------------------------
> Tests run: 8, Failures: 0, Errors: 2, Skipped: 0, Time elapsed: 40.184 sec <<<
FAILURE! - in org.apache.cayenne.access.DataContextIteratedQueryIT
> testPerformIteratedQuery_resolve(org.apache.cayenne.access.DataContextIteratedQueryIT)
 Time elapsed: 20.026 sec  <<< ERROR!
> org.apache.cayenne.CayenneRuntimeException: [v.4.0.M4-SNAPSHOT Oct 06 2016 19:20:35]
Global exception.
>         at org.apache.cayenne.datasource.UnmanagedPoolingDataSource.getConnection(UnmanagedPoolingDataSource.java:351)
>         at org.apache.cayenne.datasource.ManagedPoolingDataSource.getConnection(ManagedPoolingDataSource.java:92)
>         at org.apache.cayenne.access.DataNode$TransactionDataSource.getConnection(DataNode.java:372)
>         at org.apache.cayenne.access.DataNode.performQueries(DataNode.java:286)
>         at org.apache.cayenne.access.DataDomainQueryAction.runQuery(DataDomainQueryAction.java:473)
>         at org.apache.cayenne.access.DataDomainQueryAction.access$000(DataDomainQueryAction.java:72)
>         at org.apache.cayenne.access.DataDomainQueryAction$2.perform(DataDomainQueryAction.java:446)
>         at org.apache.cayenne.tx.DefaultTransactionManager.performInTransaction(DefaultTransactionManager.java:87)
>         at org.apache.cayenne.tx.DefaultTransactionManager.performInLocalTransaction(DefaultTransactionManager.java:59)
>         at org.apache.cayenne.tx.DefaultTransactionManager.performInTransaction(DefaultTransactionManager.java:52)
>         at org.apache.cayenne.tx.DefaultTransactionManager.performInTransaction(DefaultTransactionManager.java:40)
>         at org.apache.cayenne.access.DataDomainQueryAction.runQueryInTransaction(DataDomainQueryAction.java:443)
>         at org.apache.cayenne.access.UnitTestDomainQueryAction.runQueryInTransaction(UnitTestDomainQueryAction.java:53)
>         at org.apache.cayenne.access.DataDomainQueryAction.execute(DataDomainQueryAction.java:122)
>         at org.apache.cayenne.access.UnitTestDomainQueryAction.execute(UnitTestDomainQueryAction.java:47)
>         at org.apache.cayenne.access.UnitTestDomain.onQueryNoFilters(UnitTestDomain.java:63)
>         at org.apache.cayenne.access.DataDomain$DataDomainQueryFilterChain.onQuery(DataDomain.java:730)
>         at org.apache.cayenne.tx.TransactionFilter.onQuery(TransactionFilter.java:49)
>         at org.apache.cayenne.access.DataDomain$DataDomainQueryFilterChain.onQuery(DataDomain.java:730)
>         at org.apache.cayenne.access.DataDomain.onQuery(DataDomain.java:551)
>         at org.apache.cayenne.util.ObjectContextQueryAction.runQuery(ObjectContextQueryAction.java:384)
>         at org.apache.cayenne.util.ObjectContextQueryAction.executePostCache(ObjectContextQueryAction.java:107)
>         at org.apache.cayenne.util.ObjectContextQueryAction.execute(ObjectContextQueryAction.java:94)
>         at org.apache.cayenne.access.DataContext.onQuery(DataContext.java:989)
>         at org.apache.cayenne.access.DataContext.performQuery(DataContext.java:978)
>         at org.apache.cayenne.util.RelationshipFault.resolveFromDB(RelationshipFault.java:90)
>         at org.apache.cayenne.util.PersistentObjectList.resolvedObjectList(PersistentObjectList.java:301)
>         at org.apache.cayenne.util.PersistentObjectList.size(PersistentObjectList.java:268)
>         at org.apache.cayenne.access.DataContextIteratedQueryIT.testPerformIteratedQuery_resolve(DataContextIteratedQueryIT.java:207)
> testPerformIteratedQuery_CommitWithinIterator(org.apache.cayenne.access.DataContextIteratedQueryIT)
 Time elapsed: 20.027 sec  <<< ERROR!
> org.apache.cayenne.CayenneRuntimeException: [v.4.0.M4-SNAPSHOT Oct 06 2016 19:20:35]
Commit Exception
>         at org.apache.cayenne.datasource.UnmanagedPoolingDataSource.getConnection(UnmanagedPoolingDataSource.java:351)
>         at org.apache.cayenne.datasource.ManagedPoolingDataSource.getConnection(ManagedPoolingDataSource.java:92)
>         at org.apache.cayenne.access.DataNode$TransactionDataSource.getConnection(DataNode.java:372)
>         at org.apache.cayenne.access.DataNode.performQueries(DataNode.java:286)
>         at org.apache.cayenne.access.DataDomainFlushAction.runQueries(DataDomainFlushAction.java:234)
>         at org.apache.cayenne.access.DataDomainFlushAction.flush(DataDomainFlushAction.java:155)
>         at org.apache.cayenne.access.DataDomain.onSyncFlush(DataDomain.java:629)
>         at org.apache.cayenne.access.DataDomain.onSyncNoFilters(DataDomain.java:598)
>         at org.apache.cayenne.access.DataDomain$DataDomainSyncFilterChain.onSync(DataDomain.java:746)
>         at org.apache.cayenne.tx.TransactionFilter$1.perform(TransactionFilter.java:73)
>         at org.apache.cayenne.tx.TransactionFilter$1.perform(TransactionFilter.java:70)
>         at org.apache.cayenne.tx.DefaultTransactionManager.performInTransaction(DefaultTransactionManager.java:87)
>         at org.apache.cayenne.tx.DefaultTransactionManager.performInLocalTransaction(DefaultTransactionManager.java:59)
>         at org.apache.cayenne.tx.DefaultTransactionManager.performInTransaction(DefaultTransactionManager.java:52)
>         at org.apache.cayenne.tx.DefaultTransactionManager.performInTransaction(DefaultTransactionManager.java:40)
>         at org.apache.cayenne.tx.TransactionFilter.onSync(TransactionFilter.java:70)
>         at org.apache.cayenne.access.DataDomain$DataDomainSyncFilterChain.onSync(DataDomain.java:746)
>         at org.apache.cayenne.access.DataDomain.onSync(DataDomain.java:585)
>         at org.apache.cayenne.access.DataContext.flushToParent(DataContext.java:742)
>         at org.apache.cayenne.access.DataContext.commitChanges(DataContext.java:691)
>         at org.apache.cayenne.access.DataContextIteratedQueryIT.testPerformIteratedQuery_CommitWithinIterator(DataContextIteratedQueryIT.java:227)



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Mime
View raw message