Uploaded image for project: 'GeoServer'
  1. GeoServer
  2. GEOS-8038

Intermittent build failure in gs-restconfig CoverageStoreTest.testDeletePurgeAllAfterConfigure

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Medium
    • Resolution: Fixed
    • Affects Version/s: 2.11-RC1, 2.12-beta
    • Fix Version/s: 2.10.3, 2.12-beta, 2.11.1
    • Component/s: REST
    • Labels:

      Description

      gs-restconfig CoverageStoreTest.testDeletePurgeAllAfterConfigure sometimes fails.

      http://ares.boundlessgeo.com/jenkins/job/geoserver-master/4098/consoleText
      https://sourceforge.net/p/geoserver/mailman/message/35730278/

      This is not the first time; we also saw it last year:
      https://sourceforge.net/p/geoserver/mailman/message/35182187/

      From the most recent failure (build #4098):

      testDeletePurgeAllAfterConfigure(org.geoserver.catalog.rest.CoverageStoreTest)  Time elapsed: 210 sec  <<< FAILURE!
      java.lang.AssertionError: expected:<11> but was:<10>
      	at org.junit.Assert.fail(Assert.java:88)
      	at org.junit.Assert.failNotEquals(Assert.java:743)
      	at org.junit.Assert.assertEquals(Assert.java:118)
      	at org.junit.Assert.assertEquals(Assert.java:555)
      	at org.junit.Assert.assertEquals(Assert.java:542)
      	at org.geoserver.catalog.rest.CoverageStoreTest.purgeRequest(CoverageStoreTest.java:371)
      	at org.geoserver.catalog.rest.CoverageStoreTest.testDeletePurgeAllAfterConfigure(CoverageStoreTest.java:390)
      

      The test counts the number of files in the test directory and expects 11. The files are:

      NCOM_wattemp_020_20081031T0000000_12.tiff
      datastore.properties
      empty.1.log.db
      empty.data.db
      empty.index.db
      empty.lock.db
      empty.trace.db
      indexer.properties
      mosaicfordelete.properties
      sample_image.dat
      timeregex.properties
      

      Sometimes there are only 10 files. My guess is that this failure is a thread race condition caused by an H2 thread not yet having created one of the empty.*.db files. I have not caught it in the act.

        Attachments

          Issue links

            Activity

              People

              • Assignee:
                bencaradocdavies Ben Caradoc-Davies
                Reporter:
                bencaradocdavies Ben Caradoc-Davies
              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: