Netflix/curator — pull request #70 by cb372 (2012-05-08 07:49:39+00:00)
Title: Add a hack to stop ZK server leaking file handles on shutdown

This is a workaround for the problem with `TestingServer` where the ZK server does not properly close its log files when you shut it down, meaning that you cannot clean up its temp dir after your tests.

Warning: It's a massive hack, but no more so than the code I found a few lines above it ;)

This seems like a ZooKeeper bug to me, but I'm not sure if it's a registered issue. A quick search of JIRA didn't turn up anything.

Concerning `TestingCluster`, I'm not sure whether it needs to be fixed in a similar way. `QuorumPeer#shutdown()` appears to call `zkDb.close()`, so maybe it doesn't exhibit this bug.