[Geoserver-devel] [JIRA] (GEOS-8038) Intermittent build failure in gs-restconfig CoverageStoreTest.testDeletePurgeAllAfterConfigure

Ben Caradoc-Davies [Administrator] created an issue

GeoServer / BugGEOS-8038

Intermittent build failure in gs-restconfig CoverageStoreTest.testDeletePurgeAllAfterConfigure

Issue Type:

BugBug

Affects Versions:

2.11-RC1, 2.12-beta

Assignee:

Unassigned

Components:

REST

Created:

17/Mar/17 8:49 PM

Priority:

MediumMedium

Reporter:

Ben Caradoc-Davies [Administrator]

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 and H2 thread not yet having created one of the empty.*.db files. I have not yet been able to catch it in the act.

Add Comment

Add Comment

This message was sent by Atlassian JIRA (v1000.824.3#100035-sha1:74ec649)

Atlassian logo