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

Intermittent test failure: AsyncAPITest

    XMLWordPrintable

Details

    • Enhancement
    • Resolution: Done
    • Major
    • 5.2.0.Beta6
    • 5.2.0.Beta5
    • None

    Description

      AsyncAPITest.testAsyncMethodWithLifespanAndMaxIdle has this logic:

            // putIfAbsent lifespan only
            f = c.putAsync("k", "v3");
            assertNull(f.get());
            f = c.putIfAbsentAsync("k", "v4", 1000, TimeUnit.MILLISECONDS);
            markStartTime();
            assert f != null;
            assert !f.isCancelled();
            assertEquals("v3", f.get()); //here's the problem!!
      

      the test assumes that the first put(v3_ executes before the second one (v4) which is not correct.

      Attachments

        Issue Links

          Activity

            People

              mircea.markus Mircea Markus (Inactive)
              mircea.markus Mircea Markus (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: