I'd prefer not to use the handle itself, as that's an object that's exposed to clients, so clients could try to lock on it in a callback.
The single thread/ledger thing would take a couple of forms, but the biggest pieces would be 1) making sure a ledger handle instance is only given one executor 2) making sure all callbacks from bookie client are run on that one executor & 3) asserting that Thread.currentThread().getId() matches the ID of the executor given to the handle. [ Full content available at: https://github.com/apache/bookkeeper/pull/1646 ] This message was relayed via gitbox.apache.org for [email protected]
