Uploaded image for project: 'OpenJPA'
  1. OpenJPA
  2. OPENJPA-2386 Support for JAVA 8
  3. OPENJPA-2490

Duplicate key errors when testing with Java 8

    XMLWordPrintableJSON

Details

    • Sub-task
    • Status: Reopened
    • Major
    • Resolution: Unresolved
    • 2.4.0
    • None
    • datacache, jdbc
    • None
    • Java 8
      java version "1.8.0"
      Java(TM) SE Runtime Environment (build 1.8.0-b132)
      Java HotSpot(TM) Client VM (build 25.0-b70, mixed mode)

    Description

      More failures when running with Java 8. These failures are intermittent. They seem to depend on whether I am running the full openjpa bucket (mvn test from the top level directory), or whether I am running just from the openjpa-persistence-jdbc directory level.

      Tests in error:
      testConcurrentMap001(org.apache.openjpa.persistence.relations.TestConcurrentMap)
      testDeleteIsDetectedOnCleanRefreshWithLockWithDataCache(org.apache.openjpa.persistence.datacache.TestDataCacheBehavesIdentical)
      testDeleteIsDetectedOnDirtyRefreshWithLockWithDataCache(org.apache.openjpa.persistence.datacache.TestDataCacheBehavesIdentical)
      testCleanRefreshWithNoLockDoesNotHitDatabase(org.apache.openjpa.persistence.datacache.TestDataCacheBehavesIdentical)
      testCleanRefreshWithReadLockDoesNotHitDatabase(org.apache.openjpa.persistence.datacache.TestDataCacheBehavesIdentical)
      testDirtyRefreshWithWriteLockHitsDatabase(org.apache.openjpa.persistence.datacache.TestDataCacheBehavesIdentical)
      testCleanRefreshWithWriteLockDoesNotHitDatabase(org.apache.openjpa.persistence.datacache.TestDataCacheBehavesIdentical)
      testDeleteIsDetectedOnDirtyRefreshWitDataCache(org.apache.openjpa.persistence.datacache.TestDataCacheBehavesIdentical)

      If I look at a couple of the surefire reports, I see some duplicate key exceptions. Again, not sure why the use of Java 8 is affecting this processing...

      Attachments

        Issue Links

          Activity

            People

              kwsutter Kevin W. Sutter
              kwsutter Kevin W. Sutter
              Votes:
              1 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated: