Uploaded image for project: 'Infinispan'
  1. Infinispan
  2. ISPN-8537

Off-heap tx tests random failures

    XMLWordPrintable

Details

    Description

      The new tests added in for ISPN-8428 define a factory method, but do not use it correctly: tests extending MultipleCacheManagerTest are supposed to override factory() without adding a @Factory annotation, and subclass are supposed to have their own override.

      Because of this, subclasses actually create new instances of the base class. TestResourceTracker doesn't like it when multiple tests with the same name run in parallel, so this causes random failures:

      15:45:04,513 ERROR (testng-Test:[]) [TestSuiteProgress] Test setup failed: org.infinispan.tx.ContextAffectsTransactionReadCommittedTest.testClassStarted
      java.lang.IllegalStateException: Two tests with the same name running in parallel: org.infinispan.tx.Test
      	at org.infinispan.test.fwk.TestResourceTracker.testStarted(TestResourceTracker.java:93) ~[test-classes/:?]
      	at org.infinispan.test.AbstractInfinispanTest.testClassStarted(AbstractInfinispanTest.java:112) ~[test-classes/:?]
      
      
      

      Attachments

        Activity

          People

            dberinde@redhat.com Dan Berindei (Inactive)
            dberinde@redhat.com Dan Berindei (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: