It looks like the listener stuff isn't in yet (#1580). In any case, this close is only on the writing handle. So if the state of the ledger changes, that state change will be accompanied by the any new writes being fenced (the protocol is that if the state is changed from open by anyone put the writer, all bookies in last ensemble must be told to fence).
So the only way for the handle to get to closed is for a call to this 'close' method. So we should check that the handle is in the 'open' state and only then drain the pending adds. (i.e. the state of the pending adds and the handle open state are tied). [ Full content available at: https://github.com/apache/bookkeeper/pull/1646 ] This message was relayed via gitbox.apache.org for [email protected]
