Intermittent build failure in gs-restconfig CoverageStoreTest.testDeletePurgeAllAfterConfigure

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):

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

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.

Environment

None

Assignee

Andrea Aime

Reporter

Ben Caradoc-Davies

Triage

None

Fix versions

Affects versions

Components

Priority

Medium
Configure