Debian Codegraph @

CHANGES.md

raw
1 <a name="2.11.0"></a>
2 ## 2.11.0 (2026-03-21)
3
4
5 #### Features
6
7 * **testing:**
8 * bump deps for Python > 3.8 ([43e6f068](https://github.com/python-zk/kazoo/commit/43e6f0682d12893e983213db3bb7927f448ae03d))
9 * add Python 3.13 & 3.14 ([b385289e](https://github.com/python-zk/kazoo/commit/b385289ed68bf791824379733e9dc80bf26ba5a9))
10 * be a little more verbose about ZK download URL ([4ed8a304](https://github.com/python-zk/kazoo/commit/4ed8a304118c98cfe6594e441bf9fa09b575a186))
11 * **core:**
12 * removing tiny remaining bits of Python2 hybridation ([0751174](https://github.com/python-zk/kazoo/commit/0751174))
13 * add support for SNI ([273bd56](https://github.com/python-zk/kazoo/commit/273bd56))
14
15 #### Bug Fixes
16
17 * **core:**
18 * Proper retry count in KazooRetry ([73309b2d](https://github.com/python-zk/kazoo/commit/73309b2d456c8e64f4ceb079f98903fc9e45f3b6))
19 * Revert "Fix possible endless wait in stop() after AUTH_FAILED error (#688)" ([2fb93a87](https://github.com/python-zk/kazoo/commit/2fb93a87d3648e2dece5698cb64b059da5134a57))
20 * prefer use of `time.monotonic` ([b00d88ff](https://github.com/python-zk/kazoo/commit/b00d88ff1485f1cb175565c49955bf5d7ce96fef), closes [#722](https://github.com/python-zk/kazoo/issues/722))
21 * Add missing Zookeeper exceptions codes ([4c6bad82](https://github.com/python-zk/kazoo/commit/4c6bad82ebe347b9e51abbf33cef443057dc1c45))
22 * fix spelling ([686d770](https://github.com/python-zk/kazoo/commit/686d770))
23
24 * **test:** avoid racy reader vs writer contender in `test_rw_lock` ([6540c932](https://github.com/python-zk/kazoo/commit/6540c932505a988ccae3c77c023113d4c4c01947))
25 * **testing:** follow redirect when downloading ZK and use https ([b4155ea0](https://github.com/python-zk/kazoo/commit/b4155ea07ba671ce98bb63cebb8dfcd42748efd3))
26
27 <a name="2.10.0"></a>
28 ## 2.10.0 (2024-01-28)
29
30
31 #### Features
32
33 * **ci:** remove `codecov` step from `tox` since performed in GA (#719) ([ffa0ae9a](https://github.com/python-zk/kazoo/commit/ffa0ae9a06932166f088846584e9b675988e0f23))
34 * **testing:**
35 * add test for Windows platform ([31fdca6b](https://github.com/python-zk/kazoo/commit/31fdca6b4a1d817523b303ccb12396228a5c9ed6))
36 * add more logging during test suite ([2c36d699](https://github.com/python-zk/kazoo/commit/2c36d699fbf0569f490d5bfa66fa85fbdc68dea3))
37
38 #### Test
39
40 * update tested ZK versions ([1a23100a](https://github.com/python-zk/kazoo/commit/1a23100a45f15bee95f72f4efde5bec00c994fcc))
41 * remove Python 3.7, add Python 3.11 and Python 3.12 ([e33a6e17](https://github.com/python-zk/kazoo/commit/e33a6e17ef93302c5c07328b249e5126c4079c8c))
42 * bump pypy to latest available ([383cdf8c](https://github.com/python-zk/kazoo/commit/383cdf8cc689c2aa92c5fb1cd4831e0e2e5e7b35))
43 * add SSL test ([be1b7723](https://github.com/python-zk/kazoo/commit/be1b77233b0da87e10b972ddc84327103b2bc45e))
44 * Don't throw when test fail while cluster is down ([5851e406](https://github.com/python-zk/kazoo/commit/5851e406f578cfb4dc08cf7cdd66d6575cb41ef8))
45
46 #### Doc
47
48 * Include type hints in docs ([e24e1200](https://github.com/python-zk/kazoo/commit/e24e1200351bac10c0fb9f23608bc385b35afb49))
49 * Use `.readthedocs.yaml` to configure the build ([693cd487](https://github.com/python-zk/kazoo/commit/693cd487ae61ef1e935b495a45d46f4de9ac2772))
50 * there are more than 50 contributors now (#703) ([d7c44cd1](https://github.com/python-zk/kazoo/commit/d7c44cd14b63f08a6ac5be866831b631766427d4))
51 * Replace build badge from Travis to Actions (#675) ([a43ef2bf](https://github.com/python-zk/kazoo/commit/a43ef2bfb11691ae3f490c3a2eb3319e7c4f6222))
52
53 #### Chore
54
55 * add mypy to the build (#689) ([8f608f84](https://github.com/python-zk/kazoo/commit/8f608f8477a2a1058bd8be071f5cbeabb540fc23))
56 * migrate to tox 4.x ([0c564419](https://github.com/python-zk/kazoo/commit/0c56441917eb4657a1892a1b459dffab9fc5f468))
57 * Integrate flake8 & black in gh actions ([644eeb74](https://github.com/python-zk/kazoo/commit/644eeb7426f149672ae1a68b2bfa12e6efea302a))
58 * bump pyflake, fix new warnings ([f3b7ff71](https://github.com/python-zk/kazoo/commit/f3b7ff712d1d7b51180265674cb1e939432c7570))
59 * add black dependencies to the build ([951f7442](https://github.com/python-zk/kazoo/commit/951f744272ad69875827689b3f15ca43c79aae11))
60 * backport changes from release/2.9 (#674) ([cb2fe857](https://github.com/python-zk/kazoo/commit/cb2fe8575924a548b07f29210a058091a017c4fc))
61 * **deps:**
62 * bump actions/cache from 3 to 4 ([a440c91d](https://github.com/python-zk/kazoo/commit/a440c91db0212313e7ec44d11784eeeba88c2c54))
63 * bump actions/setup-java from 3 to 4 ([aa219898](https://github.com/python-zk/kazoo/commit/aa219898c0a62f10b66d0a981c23b3f1d4601283))
64 * bump actions/setup-python from 4 to 5 ([1a5205c8](https://github.com/python-zk/kazoo/commit/1a5205c86db9e9aca72e823f984ba0e02067a82c))
65 * bump actions/checkout from 3 to 4 ([d9830661](https://github.com/python-zk/kazoo/commit/d9830661459a3ee8b286fe3418ebccd8b242ebb6))
66 * bump actions/setup-python from 2 to 4 (#695) ([491cab3f](https://github.com/python-zk/kazoo/commit/491cab3f2f882b1612eae808fd718d41c93e0f5d))
67 * bump actions/cache from 2 to 3 ([1c0c4535](https://github.com/python-zk/kazoo/commit/1c0c4535c9c82092d94ce36fb7a0be4c43483bb4))
68 * bump codecov/codecov-action from 2 to 3 ([b3dcad2d](https://github.com/python-zk/kazoo/commit/b3dcad2d790d2f9c3c2f800d27e147bf2ec86fdd))
69 * bump actions/checkout from 2 to 3 ([d2a08d48](https://github.com/python-zk/kazoo/commit/d2a08d48c01bb54ccdc9dbfdfb3a061f50e24198))
70 * **packaging:** Remove redundant wheel dep from pyproject.toml (#671) ([161c6877](https://github.com/python-zk/kazoo/commit/161c68770aa1366056322cf5f095f4ca36150f0c))
71
72 #### Refactor
73
74 * no need to specify `mock` (#702) ([92b071d3](https://github.com/python-zk/kazoo/commit/92b071d3f5ee52096a56fc8d77c23e70f01bb4bd))
75 * delete back of travis config (#705) ([d224a520](https://github.com/python-zk/kazoo/commit/d224a52062dfe7e126796781763d191b19e40025))
76 * remove unecessary import guard for gevent.lock ([74ecc0f2](https://github.com/python-zk/kazoo/commit/74ecc0f2fd9d17e942de3c1f1cdcbc2c48b2bb1f))
77 * remove string interpolation in favour of exception chaining ([e38b5c5f](https://github.com/python-zk/kazoo/commit/e38b5c5f894432aa21316ba670eba874ba573bbb))
78 * remove backport of 'atexit.unregister' ([7ade392d](https://github.com/python-zk/kazoo/commit/7ade392d22cd37195f52da469ee233d339b20a01))
79 * Replace usage of six for their py3 implementations ([e05b50a1](https://github.com/python-zk/kazoo/commit/e05b50a1d6c04f7e6cf0c82c43e79cfd8520ee2a))
80
81 #### Bug Fixes
82
83 * **core:** no need to alway perform an `os.stat(fd)` ([b06ffd71](https://github.com/python-zk/kazoo/commit/b06ffd71bc82ce61fcacf8f5589f9312c4472db8))
84 * **exceptions:** Register exception for server-side QUOTAEXCEEDED(-125) ([6054d822](https://github.com/python-zk/kazoo/commit/6054d82281360efa2f95d8cbf311499a28c4a9c6))
85 * **testing:**
86 * cleanup ZK cluster between test cases ([d218dc97](https://github.com/python-zk/kazoo/commit/d218dc970575f5d6042c14060d36e118a8c92e57))
87 * add `.coveragerc` (#718) ([6dbf6062](https://github.com/python-zk/kazoo/commit/6dbf606212b891254b948ddaf6a14a678303e8cd))
88 * **tests:** `test_read_only` is not flaky anymore. ([6b40a437](https://github.com/python-zk/kazoo/commit/6b40a43761f456efafa48a262be145fb6fc74fc9))
89
90
91
92 <a name="2.9.0"></a>
93 ## 2.9.0 (2022-10-08)
94
95
96 #### Chore
97
98 * migrate to setup.cfg (#666) ([5f7ae483](https://github.com/python-zk/kazoo/commit/5f7ae4833a64dac7e6cca407498fc6a1e2baca90))
99 * **ci:**
100 * testing with Python3.10 and ZK 3.5.10, 3.6.3, 3.7.1 (#659) ([bd627973](https://github.com/python-zk/kazoo/commit/bd62797358bd0f8993af829be9cb5a95d0305434))
101 * better specify how to trigger Github Actions (#658) ([1ea097d5](https://github.com/python-zk/kazoo/commit/1ea097d5d50466705ca1ec12945ce290c256915c))
102 * Replace Travis with Github Actions ([8eb462f2](https://github.com/python-zk/kazoo/commit/8eb462f26cb7af090d863850f71618594620d223))
103
104 #### Doc
105
106 * fix simple typo, untill -> until ([85f1b5fc](https://github.com/python-zk/kazoo/commit/85f1b5fc02271247b0ce1dc84bfed03076e573de))
107
108 #### Features
109
110 * **core:** make DNS resolution error retriable (#631) ([e0810242](https://github.com/python-zk/kazoo/commit/e081024216bceaafc0d5022ce62f702667e2e9b3))
111
112 #### Bug Fixes
113
114 * **core:**
115 * use selectors to poll connections instead of raw select in threading,gevent,eventlet (#656) ([4042a850](https://github.com/python-zk/kazoo/commit/4042a8505cdac94dba5718b6a89f82d478fef0d6))
116 * do not allow responses to choke request and ping processing ([89e06603](https://github.com/python-zk/kazoo/commit/89e0660371df940a4c15f5f6ab4c540bbd109d20))
117 * **recipe:**
118 * fix deadlock in r/w lock recipe (#650) ([9bb84994](https://github.com/python-zk/kazoo/commit/9bb849941deb1d62ca3ca4d74882ed41cf569513), closes [#649](https://github.com/python-zk/kazoo/issues/649))
119 * fix deprecation warning from threading.Event ([569c89cd](https://github.com/python-zk/kazoo/commit/569c89cda811593f99294c055d00ebf27aab3068))
120
121
122
123 <a name="2.8.0"></a>
124 ## 2.8.0 (2020-07-11)
125
126
127 #### Features
128
129 * **chore:** using Github templates for issues and PRs (#610) ([eddc0976](https://github.com/python-zk/kazoo/commit/eddc0976bf1ef9d9fb97990cebbc3f9b1abe9d7d))
130 * **core:**
131 * Use strict regex to identify lock contenders. ([cc8ce892](https://github.com/python-zk/kazoo/commit/cc8ce8929116a1f0a2f0d088afa82ac9576395dc))
132 * Support additionaal lock contenter patterns ([225eeecb](https://github.com/python-zk/kazoo/commit/225eeecbe66c10d46dc7928681783d17f389f13a))
133 * **tests:**
134 * Disable problematic hound-flake8-black integration. ([75f62a0d](https://github.com/python-zk/kazoo/commit/75f62a0dd40a9f9bdefcb04cea5ee5fcd3438c0e))
135 * Move to pytest ([de97d74b](https://github.com/python-zk/kazoo/commit/de97d74b50b62cd2f0cddc2a04e150575d9c6bc7))
136 * add Python 3.8 and remove Python 3.6 from the testing suite (#611) ([e4f808f7](https://github.com/python-zk/kazoo/commit/e4f808f7f0fe17e7e01468a2c54684f048e12b52))
137
138 #### Performance
139
140 * **core:** Use chain.from_iterable in threading.py (#614) ([13c73ec5](https://github.com/python-zk/kazoo/commit/13c73ec5f4d4f2215deb987a059051bb821674ca))
141
142 #### Bug Fixes
143
144 * **core:**
145 * handle SSL_WANT_READ/WRITE errors (#619) ([cbdc4749](https://github.com/python-zk/kazoo/commit/cbdc4749edb5879099c1f9b832c055d9eeb52dea), closes [#618](https://github.com/python-zk/kazoo/issues/618))
146 * '"is" with a literal' syntax errors (#609) ([6b6ffe62](https://github.com/python-zk/kazoo/commit/6b6ffe62a073d1ed5413c65c2d8ec94ea2fa1760))
147 * sync() return should be unchrooted ([cbde70ac](https://github.com/python-zk/kazoo/commit/cbde70ac87435afbbacc9806c675184c7f778343), closes [#601](https://github.com/python-zk/kazoo/issues/601))
148
149 #### Chore
150
151 * **core:** Update matrix: add pypy3, drop py27 ([522189da](https://github.com/python-zk/kazoo/commit/522189da0f238faafc8f1db34f682f49b15ec503))
152 * **tests:** Add coverage report on codecov.io ([bb475843](https://github.com/python-zk/kazoo/commit/bb475843905af1a2d25b1f5834085c85c28bb175))
153
154
155
156 <a name="2.7.0"></a>
157 ## 2.7.0 (2020-03-13)
158
159 #### Features
160
161 * **CI:** Keep only Python 3.{6,7} to CI and bump ZK versions to latests (#574) ([c293aabf](https://github.com/python-zk/kazoo/commit/c293aabf39676b94006cf736f9f75392637b8292))
162 * **core:**
163 * run SASL Kerberos tests as part of build ([5c461bdf](https://github.com/python-zk/kazoo/commit/5c461bdff50efd762805b40fbe283b194d175c61))
164 * Add create2 support ([1d81f96a](https://github.com/python-zk/kazoo/commit/1d81f96a77a6fd7ae2476cd798a5cb4bf1c1d9a2))
165 * closed states instead of lost states (#573) ([961b2f3b](https://github.com/python-zk/kazoo/commit/961b2f3be557f8314ab41f75444125222638f9cc))
166 * improve SASL interface (#546) ([cd49b3fa](https://github.com/python-zk/kazoo/commit/cd49b3fa01136848c5e6bfafb4c241b9704f249d))
167 * **recipe:** add support for curator SharedCount recipe (#559) ([88b657a0](https://github.com/python-zk/kazoo/commit/88b657a0977161f3815657878ba48f82a97a3846), closes [#558](https://github.com/python-zk/kazoo/issues/558))
168 * **utils:** extend create_tcp_connection utility (#568) ([ab0cd00c](https://github.com/python-zk/kazoo/commit/ab0cd00c12624b07dcc3b2d62aa96f8f1e658f65))
169
170 #### Bug Fixes
171
172 * **CI:** deploying only for 1 job ([0ba3634d](https://github.com/python-zk/kazoo/commit/0ba3634d99740c9ccc2dd01924a36dffff262f8e))
173 * **core:**
174 * allow requests to be queued in CONNECTING state (#374) (#588) ([a636d7a6](https://github.com/python-zk/kazoo/commit/a636d7a6bb88ab9080e902983b10c8f0f1bf60a8))
175 * Implement proper retry backoff logic with jitter. ([0bb0659c](https://github.com/python-zk/kazoo/commit/0bb0659cf3fd73714a9d75b093a75c7122e116e6))
176 * when connection fails, close the ConnectionHandler (#577) (#579) ([c7e80503](https://github.com/python-zk/kazoo/commit/c7e80503f3be97d26ff2de27f9e424070c8181bb))
177 * **recipe:** crash if None in znode (#569) ([ded79467](https://github.com/python-zk/kazoo/commit/ded79467a8254e43841dfeb69f7c3baa1980232c))
178 * **tests:**
179 * Disable JAAS isInitiator for Server ([933b38b5](https://github.com/python-zk/kazoo/commit/933b38b5506d84e05ed6f6c5c8c208a3367400da))
180 * deactivate TCP port that was enabled by default. ([d7bed550](https://github.com/python-zk/kazoo/commit/d7bed550fee1b861eb2ee81cc685e6d08ee35c34))
181 * capitalize the default_domain value ([7fd22bfd](https://github.com/python-zk/kazoo/commit/7fd22bfd1992b90042db7946949ce992ddfd1821))
182 * weaker crypto when configuring Kerberos ([844df87a](https://github.com/python-zk/kazoo/commit/844df87ac83e72c155367cfe4ff4d52d34d46c99))
183 * prefix with toxinidir variable with a / to ensure path to ensure-zookeeper-env.sh is correct ([c4d42ca7](https://github.com/python-zk/kazoo/commit/c4d42ca7722dec5332ecd4524e8d802a81e2ddca))
184 * specify -Dfile.encoding=UTF-8 when starting the ZK JVM ([5764da0b](https://github.com/python-zk/kazoo/commit/5764da0b3c25556cb6760f68c51b387f2fd8307b))
185
186
187
188 <a name="2.6.1"></a>
189 ### 2.6.1 (2019-01-22)
190
191
192 #### Bug Fixes
193
194 * **client:** add missing paren (#550) ([1452a48f](https://github.com/python-zk/kazoo/commit/1452a48f3070fe9034314476a6fdb94ca206dede))
195 * **core:**
196 * support deprecated KazooRetry argument (#545) ([4242da80](https://github.com/python-zk/kazoo/commit/4242da801e8da7b76d7e88e37c3948f97a2b5aae))
197 * reduce timeout for the first Connect() request (#540) ([2ae392e6](https://github.com/python-zk/kazoo/commit/2ae392e69c4b2daca5d8e7f0e79b7ce90423e65c))
198 * **handlers:** make AsyncResult call all registered callbacks instantly if the handler has stopped running (#549) ([d9e0e720](https://github.com/python-zk/kazoo/commit/d9e0e7208e56c31f0abec60a3701f8d6ec1e7d32))
199 * **recipe:**
200 * No more memory leak when ChildrenWatch was stopped (#543) ([37bcda35](https://github.com/python-zk/kazoo/commit/37bcda357463155aba5f2383bc70528413a10f1b))
201 * No more memory leak once TreeCache was closed (#524) ([c48f2733](https://github.com/python-zk/kazoo/commit/c48f2733f2a6b2c2941738e4208e8cfede676730))
202
203
204
205 <a name="2.6.0"></a>
206 ## 2.6.0 (2018-11-14)
207
208
209 #### Features
210
211 * **core:**
212 * add SASL DIGEST-MD5 support ([aa2664b8](https://github.com/python-zk/kazoo/commit/aa2664b880d1456c3ccf6515c6ca42653047e272))
213 * Added SSL support (#513) ([35ce1066](https://github.com/python-zk/kazoo/commit/35ce10669ace9d0d7e787793f0d4937d5d389f69))
214 * **tests:**
215 * update Zookeeper 3.5.2-alpha to 3.5.4-beta ([30330915](https://github.com/python-zk/kazoo/commit/3033091530b8f0aba13a1b8d031a7297e54006c2), closes [#477](https://github.com/python-zk/kazoo/issues/477))
216 * update Zookeeper version from 3.4.10 to 3.4.13 ([287749b4](https://github.com/python-zk/kazoo/commit/287749b422c886f69e46d108d2ddbb5ad064773e))
217
218 #### Bug Fixes
219
220 * **core:**
221 * ensure timeout argument is positive (#534) ([8c5ce118](https://github.com/python-zk/kazoo/commit/8c5ce11883a86b15bc6497706cf36abf1b36145f))
222 * get_children with include_data=True uses GetChildren2 types (#514) ([901cba7a](https://github.com/python-zk/kazoo/commit/901cba7a40d67ec96c06abe109e3cf51a992b24d))
223 * allow authentification in RO and RW modes ([2320ab39](https://github.com/python-zk/kazoo/commit/2320ab391f3804a9ddea9c5c86eb86467bb1dbf8))
224 * Use a copy of auth data when reconnecting (#509) ([de20be91](https://github.com/python-zk/kazoo/commit/de20be917855713169863b65a7aa0634fb78b698))
225 * change KazooRetry to uniformly jitter over the whole backoff interval (#521) ([60366d2c](https://github.com/python-zk/kazoo/commit/60366d2c7910fc833991fad8e04bbe33817c0544))
226 * **recipe:** Delete lock node in queue recipe if entry already consumed ([7a8167de](https://github.com/python-zk/kazoo/commit/7a8167dea381b3a2015c869a443c96b9d5179411))
227
228 #### Doc
229
230 * make badges link to travis and pypi (#528) ([367a1df3](https://github.com/python-zk/kazoo/commit/367a1df35b3b168580327e9f52a4cb9c000ea750))
231 * specify description type for pypi to render correctly ([cc4006e6](https://github.com/python-zk/kazoo/commit/cc4006e6a8ea9441b01a631f3350357a8a2e4088))
232 * remove broken downloads badge ([47e07a96](https://github.com/python-zk/kazoo/commit/47e07a9674713b0756bce0811545c4442d40b60b))
233 * **core:** fix broken zookeeper programmers guide link ([8ecf8a50](https://github.com/python-zk/kazoo/commit/8ecf8a50c746ab7cc588ce9ac10a91ad1d1e5f34))
234
235
236
237 <a name="2.5.0"></a>
238 ## 2.5.0 (2018-06-01)
239
240
241 #### Performance
242
243 * **recipe:** Give TreeCache standalone queue ([4456f180](https://github.com/python-zk/kazoo/commit/4456f180735a0f8520bfc42474de9d27fa01bb2c))
244
245 #### Doc
246
247 * Correctly document supported versions ([f860de52](https://github.com/python-zk/kazoo/commit/f860de5284e8ba7d0ed4171d9e5c5bef41f6b64d))
248 * Add license to Wheel ([43d156de](https://github.com/python-zk/kazoo/commit/43d156de3d41173d7baf6e8edb4efa377b3732fc))
249 * minor tweaks to contributing.md (#464) ([5837d11b](https://github.com/python-zk/kazoo/commit/5837d11bb541be1296e1b3c1842b11ceb7e743d4))
250
251 #### Features
252
253 * **recipe:** allow non ephemeral locking ([6f7a603d](https://github.com/python-zk/kazoo/commit/6f7a603de9f04ec46d9946c6f5b1cb6e2b913b63))
254
255 #### Chore
256
257 * drop python 2.6 compatible gevent ([2e8dcd38](https://github.com/python-zk/kazoo/commit/2e8dcd3836d01640f07e8de911cdfb3639f97d20))
258 * remove debian packaging (#468) ([a28423aa](https://github.com/python-zk/kazoo/commit/a28423aac7f33111388372dec50653a3091b9045))
259 * stop bundling virtualenv ([af9b4cab](https://github.com/python-zk/kazoo/commit/af9b4cab39982d961647afca8119816ffe7bf5e6))
260 * remove python 3.3 from tox ([cf66474b](https://github.com/python-zk/kazoo/commit/cf66474b27b4efc9f65e292434c2fcffb697d34d))
261 * remove `easy_install` instructions ([6e6627d5](https://github.com/python-zk/kazoo/commit/6e6627d58628dec11d127fc5508f9a1d16e9c317))
262
263 #### Bug Fixes
264
265 * Pass watch as keyword arg instead of positional arg (#495) ([23850792](https://github.com/python-zk/kazoo/commit/2385079267db0bea6793c4f20588644381803a98))
266 * need gevent >= 1.2, not > 1.1 ([18f3531b](https://github.com/python-zk/kazoo/commit/18f3531b605119a547cfc4d5a4223b4b3f185405))
267 * Remove use of "async" as a variable ([225d3369](https://github.com/python-zk/kazoo/commit/225d3369c7a0736125a9375951a079f70fbe9e79), closes [#455](https://github.com/python-zk/kazoo/issues/455))
268 * **core:**
269 * Fix gevent 1.3b1+ timeout import ([257b5896](https://github.com/python-zk/kazoo/commit/257b58961f7ddd9db04d6efa070739a1b0404487))
270 * Correctly fire multiple callbacks ([0905c47b](https://github.com/python-zk/kazoo/commit/0905c47bff3cfc42382daff0d5ac81189c8ba46d))
271 * resolve race in IAsyncResult.wait() (#487) ([4d268adf](https://github.com/python-zk/kazoo/commit/4d268adf9837836f05dde5ec81be0d7bbd759e78))
272 * **recipe:**
273 * conn hangs when TreeCache refreshing ([11194137](https://github.com/python-zk/kazoo/commit/111941371daec00a2ecb5d8c29b9b1d35d6aa4ff))
274 * Unexpected exceptions break TreeCache ([db0c2d4f](https://github.com/python-zk/kazoo/commit/db0c2d4f8ab5ecfb367b7b2accfd9c52c1c91fcd))
275
276 #### Refactor
277
278 * Unify queue factory in various handlers ([cbd02f5c](https://github.com/python-zk/kazoo/commit/cbd02f5ccc6ea9e6dd6b5da01a0397ea649143a0))
279
280
281
282 <a name="2.4.0"></a>
283 ## 2.4.0 (2017-06-14)
284
285 **PYTHON SUPPORTED VERSIONS CHANGE**: Please note that Kazoo no longer tests
286 on Python 2.6 or 3.3. Tested versions are 2.7, 3.4, 3.5, 3.6, and PyPy. The
287 multiple endpoint support for KazooClient may not work correctly on 2.6.
288
289 #### Bug Fixes
290
291 * add missed parens to LockingQueue function call. ([88cf4aa7](https://github.com/python-zk/kazoo/commit/88cf4aa7bcd1437a44f6d3aeec34989c467fcf9d))
292 * **core:** revert PR #305 SetWatches which caused RuntimeError ([a7b45390](https://github.com/python-zk/kazoo/commit/a7b45390f3720a33c9ad3896a8a185bfb2628839))
293
294 #### Features
295
296 * pep8 all the things ([92880342](https://github.com/python-zk/kazoo/commit/928803420721b81962e50d425610e62b0c12e438), closes [#445](https://github.com/python-zk/kazoo/issues/445))
297 * drop Python 2.6/3.3 official support, add 3.5/3.6 testing ([2faba9ff](https://github.com/python-zk/kazoo/commit/2faba9ff3bdeff151ac6c922bf65b2dcf9c7bd7b), closes [#441](https://github.com/python-zk/kazoo/issues/441))
298 * **core:**
299 * allow multiple endpoints in KazooClient hosts arg ([72a8d96c](https://github.com/python-zk/kazoo/commit/72a8d96ca188c3c2e93bd0243283539ebd6c16f1), closes [#411](https://github.com/python-zk/kazoo/issues/411))
300 * use epoll when available to support fds > 1023 ([267e61b4](https://github.com/python-zk/kazoo/commit/267e61b4323bc13505e8933fa9b89d0591af3a69), closes [#171](https://github.com/python-zk/kazoo/issues/171))
301 * **recipe:** Add TreeCache recipe ([ec8b337e](https://github.com/python-zk/kazoo/commit/ec8b337e6f1a4ff12e669f4b96ca98fb37ee5d8a))
302
303
304
305 <a name="2.3.1"></a>
306 ## 2.3.1 (2017-06-01)
307
308
309 #### Chore
310
311 * update MANIFEST.in to reflect changes to filenames ([c9a38c5d](https://github.com/python-zk/kazoo/commit/c9a38c5d650d6d92ff30fd3c1c792fc71db9ce02))
312 * add travis deployment and update ZK versions ([7d5d59cb](https://github.com/python-zk/kazoo/commit/7d5d59cb049244b89625d621c9d91d9a44c4b051), closes [#436](https://github.com/python-zk/kazoo/issues/436))
313
314 2.3.0 (2017-05-31)
315 ------------------
316
317 Please note, there have been a few dozen merges that failed to update the
318 changelog here. As such, the log here should not be considered conclusive as
319 to the changes that are arriving in 2.3.0.
320
321 Changes being made now to ensure more accuracy in the changelog will appear
322 in all future versions going forward. Read the commit history for a better
323 understanding of changes merged between 2.2.1 and 2.3.0.
324
325 All future commits must abide by the new CONTRIBUTING.md document describing
326 how to label commits so they can be automatically used to automatically
327 generate an accurate changelog.
328
329 *WARNING:* THIS IS THE LAST KAZOO RELEASE THAT SUPPORTS PYTHON 2.6. ALL FUTURE
330 VERSIONS WILL REQUIRE PYTHON 2.7 AND ABOVE.
331
332 ### Features
333
334 - allow having observers and different sized clusters
335
336 ### Bug Handling
337
338 - \#372: fully resolve multiple records for hosts in the zookeeper
339 connection string
340
341 ### Documentation
342
343 - Fix the recipe examples, so they actually work by connecting to
344 ZooKeeper. Without start() they just hang and can't be killed.
345
346 2.2.1 (2015-06-17)
347 ------------------
348
349 ### Bug Handling
350
351 - handle NameError with basestring on py3k.
352
353 ### Documentation
354
355 2.2 (2015-06-15)
356 ----------------
357
358 ### Documentation
359
360 ### Features
361
362 - Issue \#234: Add support for reconfig cluster membership operation
363
364 ### Bug Handling
365
366 - \#315: multiple acquires of a kazoo lock using the lock recipe would
367 block when using acquire even when non-blocking is specified (only
368 when the lock was/has been already acquired).
369 - \#318: At exit register takes `*args` and `**kwargs` not args and
370 kargs
371
372 ### Documentation
373
374 2.1 (2015-05-11)
375 ----------------
376
377 ### Features
378
379 - Start running tests against Zookeeper 3.5.0 alpha and explicitly
380 configure the admin.serverPort in tests to avoid port conflicts. The
381 Zookeeper alpha version is not yet officially supported.
382 - Integrate eventlet *handler* support into kazoo so that along with
383 [gevent, threading] handlers there can now be a dedicated eventlet
384 handler for projects that need to (or want to) use eventlet (such as
385 those working in the openstack community). The
386 `requirements_eventlet.txt` file lists the optional eventlet
387 requirement(s) that needs to be satisfied when this new handler is
388 used.
389 - Use `six` to nicely handle the cross compatibility of kazoo with
390 python 2.x and 3.x (reducing/removing the need to have custom
391 compatibility code that replicates what six already provides).
392 - Add `state_change_event` to
393 `kazoo.recipe.partitioner.SetPartitioner` which is set on every
394 state change.
395 - Add a NonBlockingLease recipe. The recipe allows e.g. cron jobs
396 scheduled on multiple machines to ensure that at most N instances
397 will run a particular job, with lease timeout for graceful handover
398 in case of node failures.
399
400 ### Bug Handling
401
402 - \#291: Kazoo lock recipe was only partially re-entrant in that
403 multiple calls to acquire would obtain the the lock but the first
404 call to release would remove the underlying lock. This would leave
405 the X - 1 other acquire statements unprotected (and no longer
406 holding there expected lock). To fix this the comment about that
407 lock recipe being re-entrant has been removed and multiple acquires
408 will now block when attempted.
409 - \#78: Kazoo now uses socketpairs instead of pipes making it
410 compatible with Windows.
411 - \#144, \#221: Let client.command work with IPv6 addresses.
412 - \#216: Fixed timeout for ConnectionHandler.\_invoke.
413 - \#261: Creating a sequential znode under / doesn't work.
414 - \#274: Add server\_version() retries (by default 4 attempts will be
415 made) to better handle flakey responses.
416 - \#271: Fixed handling of KazooState.SUSPENDED in SetPartitioner.
417 - \#283: Fixed a race condition in SetPartitioner when party changes
418 during handling of lock acquisition.
419 - \#303: don't crash on random input as the hosts string.
420
421 ### Documentation
422
423 - \#222: Document that committed on the transaction is used to ensure
424 only one commit and is not an indicator of whether operations in the
425 transaction returned desired results.
426
427 2.0 (2014-06-19)
428 ----------------
429
430 ### Documentation
431
432 - Extend support to Python 3.4, deprecating Python 3.2.
433 - Issue \#198: Mention Zake as a sophisticated kazoo mock testing
434 library.
435 - Issue \#181: Add documentation on basic logging setup.
436
437 2.0b1 (2014-04-24)
438 ------------------
439
440 ### API Changes
441
442 - Null or None data is no longer treated as "". Pull req \#165, patch
443 by Raul Gutierrez S. This will affect how you should treat null data
444 in a znode vs. an empty string.
445 - Passing acl=[] to create() now works properly instead of an
446 InvalidACLError as it returned before. Patch by Raul Gutierrez S in
447 PR \#164.
448 - Removed the dependency on zope.interface. The classes in the
449 interfaces module are left for documentation purposes only (issue
450 \#131).
451
452 ### Features
453
454 - Logging levels have been reduced.
455 - Logging previously at the `logging.DEBUG` level is now logged at
456 the `kazoo.loggingsupport.BLATHER` level (5).
457 - Some low-level logging previously at the `logging.INFO` level is
458 now logged at the `logging.DEBUG` level.
459 - Issue \#133: Introduce a new environment variable
460 ZOOKEEPER\_PORT\_OFFSET for the testing support, to run the testing
461 cluster on a different range.
462
463 ### Bug Handling
464
465 - When authenticating via add\_auth() the auth data will be saved to
466 ensure that the authentication happens on reconnect (as is the case
467 when feeding auth data via KazooClient's constructor). PR \#172,
468 patch by Raul Gutierrez S.
469 - Change gevent import to remove deprecation warning when newer gevent
470 is used. PR \#191, patch by Hiroaki Kawai.
471 - Lock recipe was failing to use the client's sleep\_func causing
472 issues with gevent. Issue \#150.
473 - Calling a DataWatch or ChildrenWatch instance twice (decorator) now
474 throws an exception as only a single function can be associated with
475 a single watcher. Issue \#154.
476 - Another fix for atexit handling so that when disposing of
477 connections the atexit handler is removed. PR \#190, patch by Devaev
478 Maxim.
479 - Fix atexit handling for kazoo threading handler, PR \#183. Patch by
480 Brian Wickman.
481 - Partitioner should handle a suspended connection properly and
482 restore an allocated state if it was allocated previously. Patch by
483 Manish Tomar.
484 - Issue \#167: Closing a client that was never started throws a type
485 error. Patch by Joshua Harlow.
486 - Passing dictionaries to KazooClient.\_\_init\_\_() wasn't actually
487 working properly. Patch by Ryan Uber.
488 - Issue \#119: Handler timeout takes the max of the random interval or
489 the read timeout to ensure a negative number isn't used for the read
490 timeout.
491 - Fix ordering of exception catches in lock.acquire as it was
492 capturing a parent exception before the child. Patch by ReneSac.
493 - Fix issue with client.stop() not always setting the client state to
494 KeeperState.CLOSED. Patch by Jyrki Pulliainen in PR \#174.
495 - Issue \#169: Fixed pipes leaking into child processes.
496
497 ### Documentation
498
499 - Add section on contributing recipes, add maintainer/status
500 information for existing recipes.
501 - Add note about alternate use of DataWatch.
502
503 1.3.1 (2013-09-25)
504 ------------------
505
506 ### Bug Handling
507
508 - \#118, \#125, \#128: Fix unknown variable in KazooClient
509 command\_retry argument handling.
510 - \#126: Fix KazooRetry.copy to correctly copy sleep function.
511 - \#118: Correct session/socket timeout conversion (int vs. float).
512
513 ### Documentation
514
515 - \#121: Add a note about kazoo.recipe.queue.LockingQueue requiring a
516 Zookeeper 3.4+ server.
517
518 1.3 (2013-09-05)
519 ----------------
520
521 ### Features
522
523 - \#115: Limit the backends we use for SLF4J during tests.
524 - \#112: Add IPv6 support. Patch by Dan Kruchinin.
525
526 1.2.1 (2013-08-01)
527 ------------------
528
529 ### Bug Handling
530
531 - Issue \#108: Circular import fail when importing
532 kazoo.recipe.watchers directly has now been resolved. Watchers and
533 partitioner properly import the KazooState from
534 kazoo.protocol.states rather than kazoo.client.
535 - Issue \#109: Partials not usable properly as a datawatch call can
536 now be used. All funcs will be called with 3 args and fall back to 2
537 args if there's an argument error.
538 - Issue \#106, \#107: client.create\_async didn't strip change root
539 from the returned path.
540
541 1.2 (2013-07-24)
542 ----------------
543
544 ### Features
545
546 - KazooClient can now be stopped more reliably even if its in the
547 middle of a long retry sleep. This utilizes the new interrupt
548 feature of KazooRetry which lets the sleep be broken down into
549 chunks and an interrupt function called to determine if the retry
550 should fail early.
551 - Issue \#62, \#92, \#89, \#101, \#102: Allow KazooRetry to have a max
552 deadline, transition properly when connection fails to LOST, and
553 setup separate connection retry behavior from client command retry
554 behavior. Patches by Mike Lundy.
555 - Issue \#100: Make it easier to see exception context in threading
556 and connection modules.
557 - Issue \#85: Increase information density of logs and don't prevent
558 dynamic reconfiguration of log levels at runtime.
559 - Data-watchers for the same node are no longer 'stacked'. That is, if
560 a get and an exists call occur for the same node with the same watch
561 function, then it will be registered only once. This change results
562 in Kazoo behaving per Zookeeper client spec regarding repeat watch
563 use.
564
565 ### Bug Handling
566
567 - Issue \#53: Throw a warning upon starting if the chroot path doesn't
568 exist so that it's more obvious when the chroot should be created
569 before performing more operations.
570 - Kazoo previously would let the same function be registered as a
571 data-watch or child-watch multiple times, and then call it multiple
572 times upon being triggered. This was non-compliant Zookeeper client
573 behavior, the same watch can now only be registered once for the
574 same znode path per Zookeeper client documentation.
575 - Issue \#105: Avoid rare import lock problems by moving module
576 imports in client.py to the module scope.
577 - Issue \#103: Allow prefix-less sequential znodes.
578 - Issue \#98: Extend testing ZK harness to work with different file
579 locations on some versions of Debian/Ubuntu.
580 - Issue \#97: Update some docstrings to reflect current state of
581 handlers.
582 - Issue \#62, \#92, \#89, \#101, \#102: Allow KazooRetry to have a max
583 deadline, transition properly when connection fails to LOST, and
584 setup separate connection retry behavior from client command retry
585 behavior. Patches by Mike Lundy.
586
587 ### API Changes
588
589 - The kazoo.testing.harness.KazooTestHarness class directly inherits
590 from unittest.TestCase and you need to ensure to call its
591 \_\_init\_\_ method.
592 - DataWatch no longer takes any parameters besides for the optional
593 function during instantiation. The additional options are now
594 implicitly True, with the user being left to ignore events as they
595 choose. See the DataWatch API docs for more information.
596 - Issue \#99: Better exception raised when the writer fails to close.
597 A WriterNotClosedException that inherits from KazooException is now
598 raised when the writer fails to close in time.
599
600 1.1 (2013-06-08)
601 ----------------
602
603 ### Features
604
605 - Issue \#93: Add timeout option to lock/semaphore acquire methods.
606 - Issue \#79 / \#90: Add ability to pass the WatchedEvent to DataWatch
607 and ChildWatch functions.
608 - Respect large client timeout values when closing the connection.
609 - Add a max\_leases consistency check to the semaphore recipe.
610 - Issue \#76: Extend testing helpers to allow customization of the
611 Java classpath by specifying the new ZOOKEEPER\_CLASSPATH
612 environment variable.
613 - Issue \#65: Allow non-blocking semaphore acquisition.
614
615 ### Bug Handling
616
617 - Issue \#96: Provide Windows compatibility in testing harness.
618 - Issue \#95: Handle errors deserializing connection response.
619 - Issue \#94: Clean up stray bytes in connection pipe.
620 - Issue \#87 / \#88: Allow re-acquiring lock after cancel.
621 - Issue \#77: Use timeout in initial socket connection.
622 - Issue \#69: Only ensure path once in lock and semaphore recipes.
623 - Issue \#68: Closing the connection causes exceptions to be raised by
624 watchers which assume the connection won't be closed when running
625 commands.
626 - Issue \#66: Require ping reply before sending another ping,
627 otherwise the connection will be considered dead and a
628 ConnectionDropped will be raised to trigger a reconnect.
629 - Issue \#63: Watchers weren't reset on lost connection.
630 - Issue \#58: DataWatcher failed to re-register for changes after
631 non-existent node was created then deleted.
632
633 ### API Changes
634
635 - KazooClient.create\_async now supports the makepath argument.
636 - KazooClient.ensure\_path now has an async version,
637 ensure\_path\_async.
638
639 1.0 (2013-03-26)
640 ----------------
641
642 ### Features
643
644 - Added a LockingQueue recipe. The queue first locks an item and
645 removes it from the queue only after the consume() method is called.
646 This enables other nodes to retake the item if an error occurs on
647 the first node.
648
649 ### Bug Handling
650
651 - Issue \#50: Avoid problems with sleep function in mixed
652 gevent/threading setup.
653 - Issue \#56: Avoid issues with watch callbacks evaluating to false.
654
655 1.0b1 (2013-02-24)
656 ------------------
657
658 ### Features
659
660 - Refactored the internal connection handler to use a single thread.
661 It now uses a deque and pipe to signal the ZK thread that there's a
662 new command to send, so that the ZK thread can send it, or retrieve
663 a response. Processing ZK requests and responses serially in a
664 single thread eliminates the need for a bunch of the locking, the
665 peekable queue and two threads working on the same underlying
666 socket.
667 - Issue \#48: Added documentation for the retry helper module.
668 - Issue \#55: Fix os.pipe file descriptor leak and introduce a
669 KazooClient.close method. The method is particular useful in tests,
670 where multiple KazooClients are created and closed in the same
671 process.
672
673 ### Bug Handling
674
675 - Issue \#46: Avoid TypeError in GeneratorContextManager on process
676 shutdown.
677 - Issue \#43: Let DataWatch return node data if allow\_missing\_node
678 is used.
679
680 0.9 (2013-01-07)
681 ----------------
682
683 ### API Changes
684
685 - When a retry operation ultimately fails, it now raises a
686 kazoo.retry.RetryFailedError exception, instead of a general
687 Exception instance. RetryFailedError also inherits from the base
688 KazooException.
689
690 ### Features
691
692 - Improvements to Debian packaging rules.
693
694 ### Bug Handling
695
696 - Issue \#39 / \#41: Handle connection dropped errors during session
697 writes. Ensure client connection is re-established to a new ZK node
698 if available.
699 - Issue \#38: Set CLOEXEC flag on all sockets when available.
700 - Issue \#37 / \#40: Handle timeout errors during select calls on
701 sockets.
702 - Issue \#36: Correctly set ConnectionHandler.writer\_stopped even if
703 an exception is raised inside the writer, like a retry operation
704 failing.
705
706 0.8 (2012-10-26)
707 ----------------
708
709 ### API Changes
710
711 - The KazooClient.\_\_init\_\_ took as watcher argument as its second
712 keyword argument. The argument had no effect anymore since version
713 0.5 and was removed.
714
715 ### Bug Handling
716
717 - Issue \#35: KazooClient.\_\_init\_\_ didn't pass on
718 retry\_max\_delay to the retry helper.
719 - Issue \#34: Be more careful while handling socket connection errors.
720
721 0.7 (2012-10-15)
722 ----------------
723
724 ### Features
725
726 - DataWatch now has a allow\_missing\_node setting that allows a watch
727 to be set on a node that doesn't exist when the DataWatch is
728 created.
729 - Add new Queue recipe, with optional priority support.
730 - Add new Counter recipe.
731 - Added debian packaging rules.
732
733 ### Bug Handling
734
735 - Issue \#31 fixed: Only catch KazooExceptions in catch-all calls.
736 - Issue \#15 fixed again: Force sleep delay to be a float to appease
737 gevent.
738 - Issue \#29 fixed: DataWatch and ChildrenWatch properly re-register
739 their watches on server disconnect.
740
741 0.6 (2012-09-27)
742 ----------------
743
744 ### API Changes
745
746 - Node paths are assumed to be Unicode objects. Under Python 2
747 pure-ascii strings will also be accepted. Node values are considered
748 bytes. The byte type is an alias for str under Python 2.
749 - New KeeperState.CONNECTED\_RO state for Zookeeper servers connected
750 in read-only mode.
751 - New NotReadOnlyCallError exception when issuing a write change
752 against a server thats currently read-only.
753
754 ### Features
755
756 - Add support for Python 3.2, 3.3 and PyPy (only for the threading
757 handler).
758 - Handles connecting to Zookeeper 3.4+ read-only servers.
759 - Automatic background scanning for a Read/Write server when connected
760 to a server in read-only mode.
761 - Add new Semaphore recipe.
762 - Add a new retry\_max\_delay argument to the client and by default
763 limit the retry delay to at most an hour regardless of exponential
764 backoff settings.
765 - Add new randomize\_hosts argument to KazooClient, allowing one to
766 disable host randomization.
767
768 ### Bug Handling
769
770 - Fix bug with locks not handling intermediary lock contenders
771 disappearing.
772 - Fix bug with set\_data type check failing to catch unicode values.
773 - Fix bug with gevent 0.13.x backport of peekable queue.
774 - Fix PatientChildrenWatch to use handler specific sleep function.
775
776 0.5 (2012-09-06)
777 ----------------
778
779 Skipping a version to reflect the magnitude of the change. Kazoo is now
780 a pure Python client with no C bindings. This release should run without
781 a problem on alternate Python implementations such as PyPy and Jython.
782 Porting to Python 3 in the future should also be much easier.
783
784 ### Documentation
785
786 - Docs have been restructured to handle the new classes and locations
787 of the methods from the pure Python refactor.
788
789 ### Bug Handling
790
791 This change may introduce new bugs, however there is no longer the
792 possibility of a complete Python segfault due to errors in the C library
793 and/or the C binding.
794
795 - Possible segfaults from the C lib are gone.
796 - Password mangling due to the C lib is gone.
797 - The party recipes didn't set their participating flag to False after
798 leaving.
799
800 ### Features
801
802 - New client.command and client.server\_version API, exposing
803 Zookeeper's four letter commands and giving access to structured
804 version information.
805 - Added 'include\_data' option for get\_children to include the node's
806 Stat object.
807 - Substantial increase in logging data with debug mode. All
808 correspondence with the Zookeeper server can now be seen to help in
809 debugging.
810
811 ### API Changes
812
813 - The testing helpers have been moved from testing.\_\_init\_\_ into a
814 testing.harness module. The official API's of KazooTestCase and
815 KazooTestHarness can still be directly imported from testing.
816 - The kazoo.handlers.util module was removed.
817 - Backwards compatible exception class aliases are provided for now in
818 kazoo exceptions for the prior C exception names.
819 - Unicode strings now work fine for node names and are properly
820 converted to and from unicode objects.
821 - The data value argument for the create and create\_async methods of
822 the client was made optional and defaults to an empty byte string.
823 The data value must be a byte string. Unicode values are no longer
824 allowed and will raise a TypeError.
825
826 0.3 (2012-08-23)
827 ----------------
828
829 ### API Changes
830
831 - Handler interface now has an rlock\_object for use by recipes.
832
833 ### Bug Handling
834
835 - Fixed password bug with updated zc-zookeeper-static release, which
836 retains null bytes in the password properly.
837 - Fixed reconnect hammering, so that the reconnection follows retry
838 jitter and retry backoff's.
839 - Fixed possible bug with using a threading.Condition in the set
840 partitioner. Set partitioner uses new rlock\_object handler API to
841 get an appropriate RLock for gevent.
842 - Issue \#17 fixed: Wrap timeout exceptions with staticmethod so they
843 can be used directly as intended. Patch by Bob Van Zant.
844 - Fixed bug with client reconnection looping indefinitely using an
845 expired session id.
846
847 0.2 (2012-08-12)
848 ----------------
849
850 ### Documentation
851
852 - Fixed doc references to start\_async using an AsyncResult object, it
853 uses an Event object.
854
855 ### Bug Handling
856
857 - Issue \#16 fixed: gevent zookeeper logging failed to handle a monkey
858 patched logging setup. Logging is now setup such that a greenlet is
859 used for logging messages under gevent, and the thread one is used
860 otherwise.
861 - Fixed bug similar to \#14 for ChildrenWatch on the session listener.
862 - Issue \#14 fixed: DataWatch had inconsistent handling of the node it
863 was watching not existing. DataWatch also properly spawns its
864 \_get\_data function to avoid blocking session events.
865 - Issue \#15 fixed: sleep\_func for SequentialGeventHandler was not
866 set on the class appropriately leading to additional arguments being
867 passed to gevent.sleep.
868 - Issue \#9 fixed: Threads/greenlets didn't gracefully shut down.
869 Handler now has a start/stop that is used by the client when calling
870 start and stop that shuts down the handler workers. This addresses
871 errors and warnings that could be emitted upon process shutdown
872 regarding a clean exit of the workers.
873 - Issue \#12 fixed: gevent 0.13 doesn't use the same
874 start\_new\_thread as gevent 1.0 which resulted in a fully
875 monkey-patched environment halting due to the wrong thread. Updated
876 to use the older kazoo method of getting the real thread module
877 object.
878
879 ### API Changes
880
881 - The KazooClient handler is now officially exposed as
882 KazooClient.handler so that the appropriate sync objects can be used
883 by end-users.
884 - Refactored ChildrenWatcher used by SetPartitioner into a publicly
885 exposed PatientChildrenWatch under recipe.watchers.
886
887 ### Deprecations
888
889 - connect/connect\_async has been renamed to start/start\_async to
890 better match the stop to indicate connection handling. The prior
891 names are aliased for the time being.
892
893 ### Recipes
894
895 - Added Barrier and DoubleBarrier implementation.
896
897 0.2b1 (2012-07-27)
898 ------------------
899
900 ### Bug Handling
901
902 - ZOOKEEPER-1318: SystemError is caught and rethrown as the proper
903 invalid state exception in older zookeeper python bindings where
904 this issue is still valid.
905 - ZOOKEEPER-1431: Install the latest zc-zookeeper-static library or
906 use the packaged ubuntu one for ubuntu 12.04 or later.
907 - ZOOKEEPER-553: State handling isn't checked via this method, we
908 track it in a simpler manner with the watcher to ensure we know the
909 right state.
910
911 ### Features
912
913 - Exponential backoff with jitter for retrying commands.
914 - Gevent 0.13 and 1.0b support.
915 - Lock, Party, SetPartitioner, and Election recipe implementations.
916 - Data and Children watching API's.
917 - State transition handling with listener registering to handle
918 session state changes (choose to fatal the app on session
919 expiration, etc.)
920 - Zookeeper logging stream redirected into Python logging channel
921 under the name 'Zookeeper'.
922 - Base client library with handler support for threading and gevent
923 async environments.
924