diff --git a/oak-jcr/src/test/java/org/apache/jackrabbit/oak/jcr/Parallelized.java b/oak-jcr/src/test/java/org/apache/jackrabbit/oak/jcr/Parallelized.java index 986f174..ccb6ae9 100644 --- a/oak-jcr/src/test/java/org/apache/jackrabbit/oak/jcr/Parallelized.java +++ b/oak-jcr/src/test/java/org/apache/jackrabbit/oak/jcr/Parallelized.java @@ -32,11 +32,10 @@ import org.slf4j.LoggerFactory; public class Parallelized extends Parameterized { /** - * Logger instance. Unused by this class, but present to force early - * auto-initialization of the logging system and thus to avoid warnings - * about concurrent initialization. + * Logger instance. Present to force early auto-initialization of the + * logging system and thus to avoid warnings about concurrent + * initialization. */ - @SuppressWarnings("unused") private static final Logger log = LoggerFactory.getLogger(Parallelized.class); @@ -53,7 +52,9 @@ public class Parallelized extends Parameterized { public void finished() { executor.shutdown(); try { - executor.awaitTermination(10, TimeUnit.MINUTES); + while (!executor.awaitTermination(10, TimeUnit.MINUTES)) { + log.debug("Awaiting for the task termination in {}", executor); + } } catch (InterruptedException exc) { throw new RuntimeException(exc); }