Github user ivmaykov commented on the issue: https://github.com/apache/zookeeper/pull/669 @dain take a look at the changes I made to airlift's test ByteBuf allocator. With these changes, we (sometimes) get leak details printed to stderr if a ByteBuf leaks, before the test crashes. Feel free to incorporate the approach into airlift if you want.
---