commit | 85cd302291784dc8502172303ad3a315a15566f3 | [log] [tgz] |
---|---|---|
author | karanmehta93 <k.mehta@salesforce.com> | Tue Nov 03 02:05:45 2020 -0800 |
committer | GitHub <noreply@github.com> | Tue Nov 03 18:05:45 2020 +0800 |
tree | 75aeb918eabf36d140584e12fc1dc7d2f59a236d | |
parent | bbb0113d61d3c4c47079f5924ad00bc433925b63 [diff] |
ZookeeperClient should retry instantly on zk session expiry (#2450) Descriptions of the changes in this PR: ### Motivation Currently, we wait for `sessionTimeoutMs` before initiating a new zk cnxn. Session expiry is recevied only when zk quprum is in a healthy state and can acquire a quorum to expire a session. All other connection loss retries happen at zk client library transparently. There is not much benefit waiting at BK client level. ### Changes Updated the values for backoff and maxbackoff to 0 seconds. * ZookeeperClient should retry instantly on zk session expiry Currently, we wait for `sessionTimeoutMs` before initiating a new zk cnxn. Session expiry is recevied only when zk quprum is in a healthy state and can acquire a quorum to expire a session. All other connection loss retries happen at zk client library transparently. * Added comments
Apache BookKeeper is a scalable, fault tolerant and low latency storage service optimized for append-only workloads.
It is suitable for being used in following scenarios:
You can also read Turning Ledgers into Logs to learn how to turn ledgers into continuous log streams. If you are looking for a high level log stream API, you can checkout DistributedLog.
For filing bugs, suggesting improvements, or requesting new features, help us out by opening a Github issue or opening an Apache jira.
Subscribe or mail the user@bookkeeper.apache.org list - Ask questions, find answers, and also help other users.
Subscribe or mail the dev@bookkeeper.apache.org list - Join development discussions, propose new ideas and connect with contributors.
Join us on Slack - This is the most immediate way to connect with Apache BookKeeper committers and contributors.
We feel that a welcoming open community is important and welcome contributions.
See Developer Setup to get your local environment setup.
Take a look at our open issues: JIRA Issues Github Issues.
Review our coding style and follow our pull requests to learn about our conventions.
Make your changes according to our contribution guide.