Issue Details (XML | Word | Printable)

Key: JDO-354
Type: Bug Bug
Status: Resolved Resolved
Resolution: Fixed
Priority: Major Major
Assignee: Michelle Caisse
Reporter: Michelle Caisse
Votes: 0
Watchers: 0
Operations

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

org.apache.jdo.tck.api.persistencemanager.lifecycle.MakePersistent may fail on teardown

Created: 29/Mar/06 02:30 AM   Updated: 30/Mar/06 01:20 AM
Return to search
Component/s: tck2
Affects Version/s: JDO 2 beta
Fix Version/s: JDO 2 final

Time Tracking:
Not Specified

File Attachments:
  Size
Text File Licensed for inclusion in ASF works JDO-354.patch 2006-03-29 08:07 AM Michelle Caisse 0.7 kB

Resolution Date: 29/Mar/06 12:33 PM


 Description  « Hide
When invoked from a configuration that does not use the default schema, MakePersistent fails because it queries for classes to tear down that do not exist in the current schema.

testMakePersistent
> > (org.apache.jdo.tck.api.persistencemanager.lifecycle.MakePersistent)
> > javax.jdo.JDOFatalException:
> > Exception during tearDown
> > at org.apache.jdo.tck.JDO_Test.tearDown(JDO_Test.java:329)
> > at org.apache.jdo.tck.JDO_Test.runBare(JDO_Test.java:251)
> > at org.apache.jdo.tck.util.BatchTestRunner.doRun
> > (BatchTestRunner.java:107)
> > at org.apache.jdo.tck.util.BatchTestRunner.start
> > (BatchTestRunner.java:147)
> > at org.apache.jdo.tck.util.BatchTestRunner.main
> > (BatchTestRunner.java:122)
> > NestedThrowablesStackTrace:
> > javax.jdo.JDODataStoreException: Error executing JDOQL query "SELECT
> > THIS.DEPARTMENT_ID,THIS.DEPTID,THIS."NAME" FROM
> > datastoreidentity7.DEPARTMENT
> > THIS" : Schema 'DATASTOREIDENTITY7' does not exist
> > ERROR 42Y07: Schema 'DATASTOREIDENTITY7' does not exist

 All   Comments   Work Log   Change History   Subversion Commits      Sort Order: Ascending order - Click to sort in descending order
Michelle Caisse made changes - 29/Mar/06 02:32 AM
Field Original Value New Value
Assignee Michelle Caisse [ mcaisse ]
Michelle Caisse made changes - 29/Mar/06 08:07 AM
Attachment JDO-354.patch [ 12324691 ]
Michelle Caisse made changes - 29/Mar/06 08:11 AM
Comment [ This simple patch gives the following results with an otherwise clean build & latest JPOX download:
    [java] Total tests run: 1239. Failures: 1, Errors: 2.
    [java] 3 of 57 configurations failed.

I didn't modify the orm files as Michael suggested because we do explain the schema override in the .conf files. If anyone else feels that we should also add comments to the orm files or improve the description in the .conf files, I would be happy to make that change. Currently we say:
jdo.tck.description = MakePersistent test with schema name specified as class attribute in orm for PCPoint. Schema name derived from jdo.tck.mapping 1 is overriden in orm

[jdo.tck.mapping 1 is wrong. I should see jdo.tck.mapping 7 (or 6, or 5)]
]
Michelle Caisse made changes - 29/Mar/06 12:33 PM
Resolution Fixed [ 1 ]
Status Open [ 1 ] Resolved [ 5 ]