private void awaitWithTimeout(final CountDownLatch latch,
                                  final int timeoutSecs) {
        try {
            final boolean success = latch.await(timeoutSecs, TimeUnit.SECONDS);
            if (!success) {
                throw new RuntimeException("Timed out");
            }
        } catch (InterruptedException e) {
            throw new RuntimeException(e);
        }
    }
See the impact on disk space of doing writes with an open read txn
stroom-lmdb/src/test/java/stroom/lmdb/TestBasicLmdbDb.java