Cherry pick tp branch-4.8 commit https://github.com/apache/bookkeeper/commit/6b9cbf2052b27f331553f2738483ae21bf12b49c from Ivan Kelly
If the buffer was sent to more than one bookie with the mock, it would be released after being sent to the first one. Each write should retain a refCount themselves, and then release when done. Author: Ivan Kelly <[email protected]> Relates to #1598, closes #1643 [ Full content available at: https://github.com/apache/bookkeeper/pull/1651 ] This message was relayed via gitbox.apache.org for [email protected]
