Uploaded image for project: 'Geode'
  1. Geode
  2. GEODE-5094

ProxyJUnitTest fails intermittently in testExpiration

    XMLWordPrintableJSON

Details

    Description

      org.apache.geode.cache.ProxyJUnitTest > testExpiration FAILED
          org.apache.geode.cache.RegionDestroyedException: org.apache.geode.internal.cache.DistributedRegion[path='/rEMPTY';scope=DISTRIBUTED_NO_ACK';dataPolicy=EMPTY; concurrencyChecksEnabled]
              at org.apache.geode.internal.cache.LocalRegion.checkRegionDestroyed(LocalRegion.java:7391)
              at org.apache.geode.internal.cache.LocalRegion.checkReadiness(LocalRegion.java:2723)
              at org.apache.geode.internal.cache.LocalRegion.get(LocalRegion.java:1356)
              at org.apache.geode.internal.cache.LocalRegion.get(LocalRegion.java:1314)
              at org.apache.geode.internal.cache.LocalRegion.get(LocalRegion.java:1299)
              at org.apache.geode.internal.cache.AbstractRegion.get(AbstractRegion.java:313)
              at org.apache.geode.cache.ProxyJUnitTest.testExpiration(ProxyJUnitTest.java:1106)
      

      The test is scheduling a region to be destroyed if it is not used for 500 miliseconds. It then starting doing gets which will keep using the region. But it is possible for the gets to lose the cpu and be prevented from using the region and it then expiring. That is what is happening in this test.

      This test as currently written is flaky and needs to be rewritten.

      Attachments

        Issue Links

          Activity

            People

              upthewaterspout Dan Smith
              dschneider Darrel Schneider
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0h
                  0h
                  Logged:
                  Time Spent - 0.5h
                  0.5h