You are viewing a plain text version of this content. The canonical link for it is here.
Posted to jdo-dev@db.apache.org by "Craig Russell (JIRA)" <ji...@apache.org> on 2006/03/13 06:28:54 UTC

[jira] Created: (JDO-337) JPOX fails to use FetchPlan to load instances returned from Query

JPOX fails to use FetchPlan to load instances returned from Query
-----------------------------------------------------------------

         Key: JDO-337
         URL: http://issues.apache.org/jira/browse/JDO-337
     Project: JDO
        Type: Bug
  Components: tck20  
    Versions: JDO 2 rc1    
 Environment: JPOX
    Reporter: Craig Russell
     Fix For: JDO 2 final


When executing a query with a non-default FetchPlan, fields should be loaded. JPOX does not use the FetchPlan when executing queries.

    [java] 1) testQuery(org.apache.jdo.tck.api.persistencemanager.fetchplan.FetchPlanQuery)junit.framework.AssertionFailedError: 
    [java] Assertion 12.7.1 (FetchPlanQuery) failed:  after query.execute()
    [java] Upper Left was null.
    [java] The fetch plan includes PCRect.upperLeft and this field should have been loaded.
    [java] Assertion 12.7.1 (FetchPlanQuery) failed:  after query.execute()
    [java] Lower Right was null.
    [java] The fetch plan includes PCRect.lowerRight and this field should have been loaded.
    [java] 
    [java]      at org.apache.jdo.tck.JDO_Test.failOnError(JDO_Test.java:1035)
    [java]      at org.apache.jdo.tck.api.persistencemanager.fetchplan.FetchPlanQuery.testQuery(FetchPlanQuery.java:66)
    [java]      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    [java]      at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    [java]      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    [java]      at org.apache.jdo.tck.JDO_Test.runBare(JDO_Test.java:232)
    [java]      at org.apache.jdo.tck.util.BatchTestRunner.doRun(BatchTestRunner.java:105)
    [java]      at org.apache.jdo.tck.util.BatchTestRunner.start(BatchTestRunner.java:143)
    [java]      at org.apache.jdo.tck.util.BatchTestRunner.main(BatchTestRunner.java:118)


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


[jira] Commented: (JDO-337) JPOX fails to use FetchPlan to load instances returned from Query

Posted by "Craig Russell (JIRA)" <ji...@apache.org>.
    [ http://issues.apache.org/jira/browse/JDO-337?page=comments#action_12370843 ] 

Craig Russell commented on JDO-337:
-----------------------------------

With the JPOX SNAPSHOT as of 8:00 AM PST, this test still fails on application identity and succeeds on datastore identity.


> JPOX fails to use FetchPlan to load instances returned from Query
> -----------------------------------------------------------------
>
>          Key: JDO-337
>          URL: http://issues.apache.org/jira/browse/JDO-337
>      Project: JDO
>         Type: Bug
>   Components: tck20
>     Versions: JDO 2 rc1
>  Environment: JPOX
>     Reporter: Craig Russell
>     Assignee: Erik Bengtson
>      Fix For: JDO 2 final

>
> When executing a query with a non-default FetchPlan, fields should be loaded. JPOX does not use the FetchPlan when executing queries.
>     [java] 1) testQuery(org.apache.jdo.tck.api.persistencemanager.fetchplan.FetchPlanQuery)junit.framework.AssertionFailedError: 
>     [java] Assertion 12.7.1 (FetchPlanQuery) failed:  after query.execute()
>     [java] Upper Left was null.
>     [java] The fetch plan includes PCRect.upperLeft and this field should have been loaded.
>     [java] Assertion 12.7.1 (FetchPlanQuery) failed:  after query.execute()
>     [java] Lower Right was null.
>     [java] The fetch plan includes PCRect.lowerRight and this field should have been loaded.
>     [java] 
>     [java]      at org.apache.jdo.tck.JDO_Test.failOnError(JDO_Test.java:1035)
>     [java]      at org.apache.jdo.tck.api.persistencemanager.fetchplan.FetchPlanQuery.testQuery(FetchPlanQuery.java:66)
>     [java]      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>     [java]      at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
>     [java]      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
>     [java]      at org.apache.jdo.tck.JDO_Test.runBare(JDO_Test.java:232)
>     [java]      at org.apache.jdo.tck.util.BatchTestRunner.doRun(BatchTestRunner.java:105)
>     [java]      at org.apache.jdo.tck.util.BatchTestRunner.start(BatchTestRunner.java:143)
>     [java]      at org.apache.jdo.tck.util.BatchTestRunner.main(BatchTestRunner.java:118)

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


[jira] Commented: (JDO-337) JPOX fails to use FetchPlan to load instances returned from Query

Posted by "Erik Bengtson (JIRA)" <ji...@apache.org>.
    [ http://issues.apache.org/jira/browse/JDO-337?page=comments#action_12370853 ] 

Erik Bengtson commented on JDO-337:
-----------------------------------

With the snapshot version dated of 17-03 it reproduces the issue.

> JPOX fails to use FetchPlan to load instances returned from Query
> -----------------------------------------------------------------
>
>          Key: JDO-337
>          URL: http://issues.apache.org/jira/browse/JDO-337
>      Project: JDO
>         Type: Bug
>   Components: tck20
>     Versions: JDO 2 rc1
>  Environment: JPOX
>     Reporter: Craig Russell
>     Assignee: Erik Bengtson
>      Fix For: JDO 2 final

>
> When executing a query with a non-default FetchPlan, fields should be loaded. JPOX does not use the FetchPlan when executing queries.
>     [java] 1) testQuery(org.apache.jdo.tck.api.persistencemanager.fetchplan.FetchPlanQuery)junit.framework.AssertionFailedError: 
>     [java] Assertion 12.7.1 (FetchPlanQuery) failed:  after query.execute()
>     [java] Upper Left was null.
>     [java] The fetch plan includes PCRect.upperLeft and this field should have been loaded.
>     [java] Assertion 12.7.1 (FetchPlanQuery) failed:  after query.execute()
>     [java] Lower Right was null.
>     [java] The fetch plan includes PCRect.lowerRight and this field should have been loaded.
>     [java] 
>     [java]      at org.apache.jdo.tck.JDO_Test.failOnError(JDO_Test.java:1035)
>     [java]      at org.apache.jdo.tck.api.persistencemanager.fetchplan.FetchPlanQuery.testQuery(FetchPlanQuery.java:66)
>     [java]      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>     [java]      at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
>     [java]      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
>     [java]      at org.apache.jdo.tck.JDO_Test.runBare(JDO_Test.java:232)
>     [java]      at org.apache.jdo.tck.util.BatchTestRunner.doRun(BatchTestRunner.java:105)
>     [java]      at org.apache.jdo.tck.util.BatchTestRunner.start(BatchTestRunner.java:143)
>     [java]      at org.apache.jdo.tck.util.BatchTestRunner.main(BatchTestRunner.java:118)

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


[jira] Commented: (JDO-337) JPOX fails to use FetchPlan to load instances returned from Query

Posted by "Erik Bengtson (JIRA)" <ji...@apache.org>.
    [ http://issues.apache.org/jira/browse/JDO-337?page=comments#action_12370439 ] 

Erik Bengtson commented on JDO-337:
-----------------------------------

should be fixed in CVS

> JPOX fails to use FetchPlan to load instances returned from Query
> -----------------------------------------------------------------
>
>          Key: JDO-337
>          URL: http://issues.apache.org/jira/browse/JDO-337
>      Project: JDO
>         Type: Bug
>   Components: tck20
>     Versions: JDO 2 rc1
>  Environment: JPOX
>     Reporter: Craig Russell
>     Assignee: Erik Bengtson
>      Fix For: JDO 2 final

>
> When executing a query with a non-default FetchPlan, fields should be loaded. JPOX does not use the FetchPlan when executing queries.
>     [java] 1) testQuery(org.apache.jdo.tck.api.persistencemanager.fetchplan.FetchPlanQuery)junit.framework.AssertionFailedError: 
>     [java] Assertion 12.7.1 (FetchPlanQuery) failed:  after query.execute()
>     [java] Upper Left was null.
>     [java] The fetch plan includes PCRect.upperLeft and this field should have been loaded.
>     [java] Assertion 12.7.1 (FetchPlanQuery) failed:  after query.execute()
>     [java] Lower Right was null.
>     [java] The fetch plan includes PCRect.lowerRight and this field should have been loaded.
>     [java] 
>     [java]      at org.apache.jdo.tck.JDO_Test.failOnError(JDO_Test.java:1035)
>     [java]      at org.apache.jdo.tck.api.persistencemanager.fetchplan.FetchPlanQuery.testQuery(FetchPlanQuery.java:66)
>     [java]      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>     [java]      at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
>     [java]      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
>     [java]      at org.apache.jdo.tck.JDO_Test.runBare(JDO_Test.java:232)
>     [java]      at org.apache.jdo.tck.util.BatchTestRunner.doRun(BatchTestRunner.java:105)
>     [java]      at org.apache.jdo.tck.util.BatchTestRunner.start(BatchTestRunner.java:143)
>     [java]      at org.apache.jdo.tck.util.BatchTestRunner.main(BatchTestRunner.java:118)

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


[jira] Commented: (JDO-337) JPOX fails to use FetchPlan to load instances returned from Query

Posted by "Erik Bengtson (JIRA)" <ji...@apache.org>.
    [ http://issues.apache.org/jira/browse/JDO-337?page=comments#action_12370847 ] 

Erik Bengtson commented on JDO-337:
-----------------------------------

works for me. Can enable log in debug mode and here?

> JPOX fails to use FetchPlan to load instances returned from Query
> -----------------------------------------------------------------
>
>          Key: JDO-337
>          URL: http://issues.apache.org/jira/browse/JDO-337
>      Project: JDO
>         Type: Bug
>   Components: tck20
>     Versions: JDO 2 rc1
>  Environment: JPOX
>     Reporter: Craig Russell
>     Assignee: Erik Bengtson
>      Fix For: JDO 2 final

>
> When executing a query with a non-default FetchPlan, fields should be loaded. JPOX does not use the FetchPlan when executing queries.
>     [java] 1) testQuery(org.apache.jdo.tck.api.persistencemanager.fetchplan.FetchPlanQuery)junit.framework.AssertionFailedError: 
>     [java] Assertion 12.7.1 (FetchPlanQuery) failed:  after query.execute()
>     [java] Upper Left was null.
>     [java] The fetch plan includes PCRect.upperLeft and this field should have been loaded.
>     [java] Assertion 12.7.1 (FetchPlanQuery) failed:  after query.execute()
>     [java] Lower Right was null.
>     [java] The fetch plan includes PCRect.lowerRight and this field should have been loaded.
>     [java] 
>     [java]      at org.apache.jdo.tck.JDO_Test.failOnError(JDO_Test.java:1035)
>     [java]      at org.apache.jdo.tck.api.persistencemanager.fetchplan.FetchPlanQuery.testQuery(FetchPlanQuery.java:66)
>     [java]      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>     [java]      at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
>     [java]      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
>     [java]      at org.apache.jdo.tck.JDO_Test.runBare(JDO_Test.java:232)
>     [java]      at org.apache.jdo.tck.util.BatchTestRunner.doRun(BatchTestRunner.java:105)
>     [java]      at org.apache.jdo.tck.util.BatchTestRunner.start(BatchTestRunner.java:143)
>     [java]      at org.apache.jdo.tck.util.BatchTestRunner.main(BatchTestRunner.java:118)

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


[jira] Commented: (JDO-337) JPOX fails to use FetchPlan to load instances returned from Query

Posted by "Erik Bengtson (JIRA)" <ji...@apache.org>.
    [ http://issues.apache.org/jira/browse/JDO-337?page=comments#action_12370416 ] 

Erik Bengtson commented on JDO-337:
-----------------------------------

Isn't this optional?

12.7.5
When an instance is loaded using getObjectById , a Query is executed, or an Extent
is iterated, the implementation may choose to use the active fetch groups to prefetch data.



> JPOX fails to use FetchPlan to load instances returned from Query
> -----------------------------------------------------------------
>
>          Key: JDO-337
>          URL: http://issues.apache.org/jira/browse/JDO-337
>      Project: JDO
>         Type: Bug
>   Components: tck20
>     Versions: JDO 2 rc1
>  Environment: JPOX
>     Reporter: Craig Russell
>     Assignee: Erik Bengtson
>      Fix For: JDO 2 final

>
> When executing a query with a non-default FetchPlan, fields should be loaded. JPOX does not use the FetchPlan when executing queries.
>     [java] 1) testQuery(org.apache.jdo.tck.api.persistencemanager.fetchplan.FetchPlanQuery)junit.framework.AssertionFailedError: 
>     [java] Assertion 12.7.1 (FetchPlanQuery) failed:  after query.execute()
>     [java] Upper Left was null.
>     [java] The fetch plan includes PCRect.upperLeft and this field should have been loaded.
>     [java] Assertion 12.7.1 (FetchPlanQuery) failed:  after query.execute()
>     [java] Lower Right was null.
>     [java] The fetch plan includes PCRect.lowerRight and this field should have been loaded.
>     [java] 
>     [java]      at org.apache.jdo.tck.JDO_Test.failOnError(JDO_Test.java:1035)
>     [java]      at org.apache.jdo.tck.api.persistencemanager.fetchplan.FetchPlanQuery.testQuery(FetchPlanQuery.java:66)
>     [java]      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>     [java]      at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
>     [java]      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
>     [java]      at org.apache.jdo.tck.JDO_Test.runBare(JDO_Test.java:232)
>     [java]      at org.apache.jdo.tck.util.BatchTestRunner.doRun(BatchTestRunner.java:105)
>     [java]      at org.apache.jdo.tck.util.BatchTestRunner.start(BatchTestRunner.java:143)
>     [java]      at org.apache.jdo.tck.util.BatchTestRunner.main(BatchTestRunner.java:118)

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


[jira] Resolved: (JDO-337) JPOX fails to use FetchPlan to load instances returned from Query

Posted by "Craig Russell (JIRA)" <ji...@apache.org>.
     [ http://issues.apache.org/jira/browse/JDO-337?page=all ]
     
Craig Russell resolved JDO-337:
-------------------------------

    Resolution: Fixed

This is fixed with the latest JPOX SNAPSHOT.

> JPOX fails to use FetchPlan to load instances returned from Query
> -----------------------------------------------------------------
>
>          Key: JDO-337
>          URL: http://issues.apache.org/jira/browse/JDO-337
>      Project: JDO
>         Type: Bug
>   Components: tck20
>     Versions: JDO 2 rc1
>  Environment: JPOX
>     Reporter: Craig Russell
>     Assignee: Erik Bengtson
>      Fix For: JDO 2 final

>
> When executing a query with a non-default FetchPlan, fields should be loaded. JPOX does not use the FetchPlan when executing queries.
>     [java] 1) testQuery(org.apache.jdo.tck.api.persistencemanager.fetchplan.FetchPlanQuery)junit.framework.AssertionFailedError: 
>     [java] Assertion 12.7.1 (FetchPlanQuery) failed:  after query.execute()
>     [java] Upper Left was null.
>     [java] The fetch plan includes PCRect.upperLeft and this field should have been loaded.
>     [java] Assertion 12.7.1 (FetchPlanQuery) failed:  after query.execute()
>     [java] Lower Right was null.
>     [java] The fetch plan includes PCRect.lowerRight and this field should have been loaded.
>     [java] 
>     [java]      at org.apache.jdo.tck.JDO_Test.failOnError(JDO_Test.java:1035)
>     [java]      at org.apache.jdo.tck.api.persistencemanager.fetchplan.FetchPlanQuery.testQuery(FetchPlanQuery.java:66)
>     [java]      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>     [java]      at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
>     [java]      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
>     [java]      at org.apache.jdo.tck.JDO_Test.runBare(JDO_Test.java:232)
>     [java]      at org.apache.jdo.tck.util.BatchTestRunner.doRun(BatchTestRunner.java:105)
>     [java]      at org.apache.jdo.tck.util.BatchTestRunner.start(BatchTestRunner.java:143)
>     [java]      at org.apache.jdo.tck.util.BatchTestRunner.main(BatchTestRunner.java:118)

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


[jira] Assigned: (JDO-337) JPOX fails to use FetchPlan to load instances returned from Query

Posted by "Craig Russell (JIRA)" <ji...@apache.org>.
     [ http://issues.apache.org/jira/browse/JDO-337?page=all ]

Craig Russell reassigned JDO-337:
---------------------------------

    Assign To: Erik Bengtson

This is the only FetchPlan issue still open.

> JPOX fails to use FetchPlan to load instances returned from Query
> -----------------------------------------------------------------
>
>          Key: JDO-337
>          URL: http://issues.apache.org/jira/browse/JDO-337
>      Project: JDO
>         Type: Bug
>   Components: tck20
>     Versions: JDO 2 rc1
>  Environment: JPOX
>     Reporter: Craig Russell
>     Assignee: Erik Bengtson
>      Fix For: JDO 2 final

>
> When executing a query with a non-default FetchPlan, fields should be loaded. JPOX does not use the FetchPlan when executing queries.
>     [java] 1) testQuery(org.apache.jdo.tck.api.persistencemanager.fetchplan.FetchPlanQuery)junit.framework.AssertionFailedError: 
>     [java] Assertion 12.7.1 (FetchPlanQuery) failed:  after query.execute()
>     [java] Upper Left was null.
>     [java] The fetch plan includes PCRect.upperLeft and this field should have been loaded.
>     [java] Assertion 12.7.1 (FetchPlanQuery) failed:  after query.execute()
>     [java] Lower Right was null.
>     [java] The fetch plan includes PCRect.lowerRight and this field should have been loaded.
>     [java] 
>     [java]      at org.apache.jdo.tck.JDO_Test.failOnError(JDO_Test.java:1035)
>     [java]      at org.apache.jdo.tck.api.persistencemanager.fetchplan.FetchPlanQuery.testQuery(FetchPlanQuery.java:66)
>     [java]      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>     [java]      at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
>     [java]      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
>     [java]      at org.apache.jdo.tck.JDO_Test.runBare(JDO_Test.java:232)
>     [java]      at org.apache.jdo.tck.util.BatchTestRunner.doRun(BatchTestRunner.java:105)
>     [java]      at org.apache.jdo.tck.util.BatchTestRunner.start(BatchTestRunner.java:143)
>     [java]      at org.apache.jdo.tck.util.BatchTestRunner.main(BatchTestRunner.java:118)

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