Uploaded image for project: 'JDO'
  1. JDO
  2. JDO-415

DataStoreConnection assumes datastore transactions are being used

    Details

      Description

      org.apache.jdo.tck.api.persistencemanager.DataStoreConnection assumes that the connection returned from getDataStoreConnection will be re-used once a JDO transaction is started, but that assertion is only valid when using datastore transactions, and the test case does not ensure that a datastore transaction is being used.

      The solution is to call "getPM().currentTransaction().setOptimistic(false);" just before "getPM().currentTransaction().begin();" in the testDataStoreConnection() test case.

        Attachments

        1. JDO-415.patch
          2 kB
          Craig L Russell

          Activity

            People

            • Assignee:
              clr Craig L Russell
              Reporter:
              mprudhom Marc Prud'hommeaux
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: