bookkeeper-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
Subject bookkeeper git commit: BOOKKEEPER-1045: Execute tests in different JVM processes
Date Thu, 04 May 2017 08:27:56 GMT
Repository: bookkeeper
Updated Branches:
  refs/heads/master 057af8dbc -> 5d282dcea

BOOKKEEPER-1045: Execute tests in different JVM processes

The current Maven Surefire configuration is using:

This is a deprecated config and apparently it's not creating new processes for each test as

Currently the tests are leaking a big number of files and threads due to several reasons:
 * Tests that instantiate bookies and call shutdown() without calling start() before are creating
and initializing the ledger storage but not closing it, leaking threads and several fds
  * ZooKeeperClient sometimes doesn't shutdown the zk handle if the test completes too quickly,
leaking sockets.
 * Several tests are passing bad config, so the bookie/client start gets exception (on purpose)
and then doesn't clean up some partial objects.
 * ...

That make running the test suite to be dependent on ulimit of the machine.

Until we can fix (almost) all the test to do proper cleanup, we should make maven to run tests
in separated processes.

Author: Matteo Merli <>

Reviewers: Enrico Olivelli<>, Jia Zhai <>

Closes #135 from merlimat/bk-1045-test-forks


Branch: refs/heads/master
Commit: 5d282dceae140577b97a12db5b2b531c7d84e985
Parents: 057af8d
Author: Matteo Merli <>
Authored: Thu May 4 10:27:44 2017 +0200
Committer: eolivelli <>
Committed: Thu May 4 10:27:44 2017 +0200

 pom.xml | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/pom.xml b/pom.xml
index 4b2eb3c..3a7a770 100644
--- a/pom.xml
+++ b/pom.xml
@@ -74,7 +74,7 @@
-	  <forkMode>always</forkMode>
+	  <reuseForks>false</reuseForks>

View raw message