bookkeeper icon indicating copy to clipboard operation
bookkeeper copied to clipboard

[client] new API to check if Bookkeeper client is connected to metadata service

Open congbobo184 opened this issue 1 year ago • 1 comments

Motivation

when zookeeper disconnect, use bookkeeper api to create new ledger will fail. add a new api to check metadata driver is available, if not available, use current ledger continue and don't rollover ledger

** tip **

Although it may not solve all issues since it's not atomic, it will reduce the losses caused by zk unavailability.

Modification

add a new api named isDriverMetadataServiceAvailable

congbobo184 avatar May 06 '24 08:05 congbobo184

rerun failure checks

congbobo184 avatar May 07 '24 11:05 congbobo184

@shoothzj @eolivelli please review again, thanks

congbobo184 avatar Jul 16 '24 11:07 congbobo184

Thanks for your contribution. :)

hezhangjian avatar Jul 26 '24 02:07 hezhangjian